Skip to content

Instantly share code, notes, and snippets.

View alerodrom's full-sized avatar
🎯
Focusing

Alejandro Rodríguez alerodrom

🎯
Focusing
View GitHub Profile
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@alerodrom
alerodrom / build_dataset.py
Created January 15, 2019 10:51 — forked from rinze/build_dataset.py
Parser para los archivos .DAT del Ministerio del Interior y el archivo de códigos de municipios del INE y código en R para gráficas simples.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import csv
import codecs
import cStringIO
import os
from collections import namedtuple
def getParties(parties_file):