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 <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' |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
// Copyright (c) Sergey Lyubka, 2013. | |
// All rights reserved. | |
// Released under the MIT license. | |
// This program is used to embed arbitrary data into a C binary. It takes | |
// a list of files as an input, and produces a .c data file that contains | |
// contents of all these files as collection of char arrays. | |
// Usage: | |
// 1. Compile this file: | |
// cc -o embed embed.c |