brew install ag
ide $(ag x -G y -l)
Open with android studio all files from current direct containing the word "order" and file name contains Activity.java
studio $(ag order -G Activity.java -l)
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <string.h> | |
| #include <stdbool.h> | |
| typedef int8_t i8; | |
| typedef int16_t i16; | |
| typedef int32_t i32; | |
| typedef int64_t i64; | |
| typedef uint8_t u8; |
| #!/bin/sh | |
| print_usage() { | |
| echo "usage: compress_video <input_file>" | |
| echo "supported formats: mp4, webm, mkv, mov, avi, flv" | |
| } | |
| get_extension() { | |
| f="${1##*/}" | |
| case "$f" in |
| #include <stdint.h> | |
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| #include <windows.h> | |
| #pragma comment( lib, "user32.lib" ) | |
| #pragma comment( lib, "gdi32.lib" ) | |
| #define SCRW 640 | |
| #define SCRH 480 |
| struct Webview: UIViewControllerRepresentable { | |
| let url: URL | |
| func makeUIViewController(context: Context) -> WebviewController { | |
| let webviewController = WebviewController() | |
| let request = URLRequest(url: self.url, cachePolicy: .returnCacheDataElseLoad) | |
| webviewController.webview.load(request) | |
| return webviewController |
| #!/usr/bin/env python3 | |
| # Distributed under the MIT software license | |
| import binascii, struct, sys, io, argparse | |
| from PIL import Image | |
| IMG_WIDTH = 512 # could be made adaptive... | |
| MIN_HEIGHT = 4 # minimum height of image; twitter won't let us upload anything smaller | |
| BYTES_PER_PIXEL = 4 # RGBA, 8 bit | |
| def div_roundup(x,y): |
| DATA DA EXTRACAO,HORA DA EXTRACAO,NUMERO DA INSCRICAO,NOME DO FILIADO,SIGLA DO PARTIDO,NOME DO PARTIDO,UF,CODIGO DO MUNICIPIO,NOME DO MUNICIPIO,ZONA ELEITORAL,SECAO ELEITORAL,DATA DA FILIACAO,SITUACAO DO REGISTRO,TIPO DO REGISTRO,DATA DO PROCESSAMENTO,DATA DA DESFILIACAO,DATA DO CANCELAMENTO,DATA DA REGULARIZACAO,MOTIVO DO CANCELAMENTO | |
| "04/05/2016","00:43:20","017587631783","ALDO FERNANDES SOBREIRA","PSOL","PARTIDO SOCIALISMO E LIBERDADE","AL","28711","SÃO MIGUEL DOS CAMPOS","18","92","29/09/2005","CANCELADO","OFICIAL","19/04/2013","18/08/2008","18/08/2008","","A pedido do eleitor" | |
| "04/05/2016","00:43:20","031234631716","JOSE ROBSON DA SILVA","PSOL","PARTIDO SOCIALISMO E LIBERDADE","AL","28711","SÃO MIGUEL DOS CAMPOS","18","78","10/01/2006","REGULAR","OFICIAL","19/04/2013","","","","" | |
| "04/05/2016","00:43:20","029507791708","ELIVANIA MARIA DA SILVA","PSOL","PARTIDO SOCIALISMO E LIBERDADE","AL","27316","CANAPI","27","23","31/08/2007","REGULAR","OFICIAL","14/11/2009","","","","" | |
| "04/05/2016","00:43:20","01950862 |
| #!/bin/sh | |
| # Some things taken from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' | |
| green='\033[0;32m' |