This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
manuel@nostromo:~$ mdb-schema '/home/manuel/.wine/drive_c/Elecciones Primarias 2011ARG/DatosBD/ArgentinaP.mdb' | |
------------------------------------------------------------- | |
-- MDB Tools - A library for reading MS Access database files | |
-- Copyright (C) 2000-2004 Brian Bruns | |
-- Files in libmdb are licensed under LGPL and the utilities under | |
-- the GPL, see COPYING.LIB and COPYING files respectively. | |
-- Check out http://mdbtools.sourceforge.net | |
------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# script muy mugriento | |
# el loop termina cuando hay excepción. | |
# TODO: agregar un parametro para poder empezar el scraping desde un | |
# id de tramite ne particular, para evitar scanear TODO. | |
require "watir-webdriver" | |
require "nokogiri" | |
require "csv" | |
pages_per_set = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
require 'json' | |
DISTRICT_DATA_RE = /->([^:]+):(.+)/ | |
def parse_data_table(element) | |
Hash[*element.xpath('.//td[@bgcolor="#ECC6D5"]').map { |td_bg| | |
[td_bg.next_element.inner_text, td_bg.next_element.next_element.inner_text] | |
}.flatten] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(tool-bar-mode -1) | |
(color-theme-clarity) | |
(server-start) | |
(menu-bar-mode -1) | |
(ido-mode) | |
(show-paren-mode) | |
(setq x-select-enable-clipboard t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name AFIP-navigate | |
// @namespace http://www.nerdpower.org/ | |
// @description Arregla el sitio de AFIP para poder imprimir constancias de Monotributo, entre otras cosas | |
// @include https://*.afip.gov.ar/* | |
// @include http://*.afip.gov.ar/* | |
// ==/UserScript== | |
// esto lo saque de aca: https://gist.github.com/1143845 | |
window.unsafeWindow || ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************** subsystem.c **************************************/ | |
#define METHOD(x) typeof(x) *x; | |
typedef enum { | |
BOOT, | |
SURVIVAL, | |
MISSION | |
} mode_t; | |
/* opaque pointer ? */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; esto va en el .emacs | |
; auto syntax check | |
(require 'flymake) | |
(require 'flymake-clang-c) | |
(add-hook 'c-mode-hook 'flymake-clang-c-load) | |
;; ~/.site-lisp/flymake-clanc-c.el | |
;; lo único que habría que hacer es setear los "-I" de acuerdo a elisp variable. | |
(defun flymake-clang-c-init () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
palette="/tmp/palette.png" | |
filters="fps=15,scale=640:-1:flags=lanczos" | |
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette | |
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Anti-popup para lanacion.com | |
// @namespace antipopup | |
// @description Evita el popup que te "obliga" a registrarte para leer el diario | |
// @include http://www.lanacion.com.ar/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var target = document.querySelector('body'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
require 'sequel' | |
require 'logger' | |
module NanoDW | |
Sequel.datetime_class = DateTime | |
DB = Sequel.connect(ENV['DATABASE_URL']) | |
log = Logger.new(STDERR) | |
log.progname = 'NanoDW::Models' |