Skip to content

Instantly share code, notes, and snippets.

View garciabruno's full-sized avatar

Bruno García Berrotarán garciabruno

  • Argentina
View GitHub Profile
@garciabruno
garciabruno / scrapper.lua
Created November 8, 2019 23:48
resultados.gob.ar scrapper using SOL Framework
require("sol")
local json = require("json")
local URL = "https://resultados.gob.ar/opt/jboss/rct/tally/pages/%s/1.png"
local FILENAME = "mesas_totales.dsv"
local PNG_HEADER = {137, 80, 78, 71}
function string:split(sep)
local sep, fields = sep or ":", {}
local pattern = string.format("([^%s]+)", sep)
@garciabruno
garciabruno / keybase.md
Last active September 9, 2019 21:10
keybase

Keybase proof

I hereby claim:

  • I am garciabruno on github.
  • I am nineinchnails (https://keybase.io/nineinchnails) on keybase.
  • I have a public key ASCF9w14754jxL7ac0xzerTpb5cMSorT0ReF6WiYRGoh-Qo

To claim this, I am signing this object:

@garciabruno
garciabruno / ticks.c
Created March 8, 2019 04:25
Get tick count/s
#include <stdio.h>
#include <time.h>
int main(void) {
struct timespec ts;
time_t current_epoch;
time_t last_epoch;
int operations = 0;