Skip to content

Instantly share code, notes, and snippets.

Vitor Baptista vitorbaptista

Block or report user

Report or block vitorbaptista

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vitorbaptista
vitorbaptista / domains-4-letter-words.csv
Created Aug 12, 2018
List of Handshake domain auction dates for every <= 4 letter word in English wordlist
View domains-4-letter-words.csv
status reserved error block start name
Available False None 138816 04/25/2019 a
Reserved True None 13824 09/20/2018 aa
Reserved True None 183168 07/11/2019 aaa
Available False None 17856 09/27/2018 aah
Available False None 114624 03/14/2019 aahs
Available False None 130752 04/11/2019 aal
Available False None 21888 10/04/2018 aals
Available False None 203328 08/15/2019 aam
Available False None 38016 11/01/2018 aani
@vitorbaptista
vitorbaptista / .gitignore
Last active Mar 11, 2018
OpenBelgium 2018 presentation on using Frictionless Data tools to package and validate data
View .gitignore
# Created by https://www.gitignore.io/api/python
### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
@vitorbaptista
vitorbaptista / README.md
Created Oct 24, 2017
Remuneração dos servidores e comissionados da Câmara de SP (Referente a 09/2017)
@vitorbaptista
vitorbaptista / Makefile
Last active Jun 15, 2017
Extract reimbursements from Serenata de Amor's Jarbas API
View Makefile
.PHONY: clean
all: reimbursements.csv
clean:
rm -f reimbursements.csv reimbursements.json
reimbursements.csv: reimbursements.json
@echo 'issue_date,term_id,term,applicant_id,congressperson_id,congressperson_name,congressperson_document,party,state,subquota_id,subquota_description,subquota_group_id,subquota_group_description,supplier,cnpj_cpf,passenger,leg_of_the_trip,document_type,document_number,installment,batch_number,document_id,document_value,remark_value,total_net_value,total_reimbursement_value,probability,receipt.url,receipt.fetched,last_update,available_in_latest_dataset,suspicions.irregular_companies_classifier,suspicions.meal_price_outlier,suspicions.election_expenses,suspicions.invalid_cnpj_cpf,suspicions.over_monthly_subquota_limit,suspicions.suspicious_traveled_speed_day,suspicions.meal_price_outlier,suspicions.irregular_companies_classifier' > $@
jq -r '.results[] | [.issue_date, .term_id, .term, .applicant_id, .congressperson_id, .congressperson_name, .congressperson_document, .party, .s
@vitorbaptista
vitorbaptista / guide.py
Created Apr 25, 2017
Simplest DAG for OpenTrials's Airflow
View guide.py
from datetime import datetime
import airflow.models
from airflow.operators.latest_only_operator import LatestOnlyOperator
import utils.helpers as helpers
args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2017, 4, 1),
'retries': 1,
@vitorbaptista
vitorbaptista / keybase.md
Created Oct 8, 2016
Verifyng myself on Keybase.io
View keybase.md

Keybase proof

I hereby claim:

  • I am vitorbaptista on github.
  • I am vitorbaptista (https://keybase.io/vitorbaptista) on keybase.
  • I have a public key ASCzHuiG5mXAuFZmosmpdpi4kLA8YpficoW3o3cmzrpYiAo

To claim this, I am signing this object:

@vitorbaptista
vitorbaptista / newschallenge-2015-teams-countries.csv
Last active Oct 2, 2015
The NewsChallenge 2015 teams' countries
View newschallenge-2015-teams-countries.csv
url country
https://www.newschallenge.org/challenge/data/entries/improve-openrefine-s-extensibility-with-data-repository-and-processing-services Canada
https://www.newschallenge.org/challenge/data/entries/microfilm-digitization USA
https://www.newschallenge.org/challenge/data/entries/crime-needs-a-new-box-score USA
https://www.newschallenge.org/challenge/data/entries/beautiful-map UK
https://www.newschallenge.org/challenge/data/entries/open-referral USA
https://www.newschallenge.org/challenge/data/entries/checking-up-on-the-fiscal-health-of-california-cities-counties-and-special-districts-a-tool-for-concerned-residents USA
https://www.newschallenge.org/challenge/data/entries/open-source-election-results-public-vote-counting USA
https://www.newschallenge.org/challenge/data/entries/designing-data-inclusion-mapping-detroit-s-data-ecosystem-to-catalyze-connectivity-engagement-and-impact-for-all USA
https://www.newschallenge.org/challenge/data/entries/tracking-gender-based-violence-while-protecting-privacy Congo
@vitorbaptista
vitorbaptista / generate-data.sh
Last active Aug 29, 2015
Generates CSV with name, id, email and image of the politicians on https://github.com/everypolitician/everypolitician-data
View generate-data.sh
#!/bin/bash
echo "name,id,email,image"
for file in `find . -name ep-popolo-v1.0.json`
do
cat $file | jq -r ".persons[] | [\"$file\", .id, .email, .image] | @csv"
done
@vitorbaptista
vitorbaptista / error.log
Created Jul 26, 2015
Full log of the error with using knitr + changing OutDec options to ",". I filed the issue on https://github.com/yihui/knitr/issues/1081
View error.log
processing file: teste.Rnw
|
| | 0%
|
|...................... | 33%
ordinary text without R code
@vitorbaptista
vitorbaptista / ping-iax2.pl
Last active Aug 29, 2015
Ping IAX2 server
View ping-iax2.pl
#!/usr/bin/perl -w
# udp ping tool
# http://www.voip-info.org/wiki/index.php?page_id=2654&comments_page=1
use IO::Socket;
$target = shift; #"192.168.0.255";
$target_port = shift; # 4569
socket(PING, PF_INET, SOCK_DGRAM, getprotobyname("udp"));
You can’t perform that action at this time.