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
# Taken from http://stackoverflow.com/questions/252766/add-line-numbers-in-vim | |
:%s/^/\=line('.')/ |
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
socios_pva | 1.725 | |
---|---|---|
resto_de_socios | 98.275 | |
socios principales vitalicios y activos | 24.0813801372 | |
resto de socios | 75.9186198628 |
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 -*- | |
import codecs | |
import prettyplotlib as ppl | |
import numpy as np | |
from prettyplotlib import plt | |
import re | |
f = codecs.open("tmp_mas_productivos.txt", encoding="utf-8") | |
data = f.read() | |
f.close() |
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/bash | |
for i in {0..900..100} | |
do | |
if [ $i = 0 ]; then | |
torsocks wget "http://www2.congreso.gob.pe/Sicr/TraDocEstProc/CLProLey2011.nsf/PAporNumeroInverso?OpenView" | |
else | |
torsocks wget "http://www2.congreso.gob.pe/Sicr/TraDocEstProc/CLProLey2011.nsf/PAporNumeroInverso?OpenView&Start=$i" | |
fi | |
done |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import socks | |
import cookielib | |
import socket | |
from bs4 import BeautifulSoup | |
import requests | |
import sys | |
import re |
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 -*- | |
import codecs | |
import prettyplotlib as ppl | |
import numpy as np | |
from prettyplotlib import plt | |
import csv | |
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
import pickle | |
import sys | |
# Modified from http://pythonism.wordpress.com/2010/04/18/a-simple-chatbot-in-python/ | |
b = open('tradiciones_peruanas.txt') | |
text = [] | |
for line in b: | |
line = line.strip() | |
for word in line.split(): |
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
import pickle | |
import random | |
import sys | |
import re | |
# Modified from http://pythonism.wordpress.com/2010/04/18/a-simple-chatbot-in-python/ | |
a = open('lexicon-luke','rb') | |
successorlist = pickle.load(a) | |
a.close() |
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
#!/usr/bin/env python | |
# -*- coding: UTF8 -*- | |
import codecs; | |
import os; | |
import datetime; | |
import re; | |
import bitly; | |
import subprocess; | |
import time; | |
import sys; |
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
## Lista de links de las Normas del Ministerio de Justicia del 2006 al 2011 | |
# Bajar fechas 00-01-06 hasta 39-09-09 | |
curl -o '#1#2-0#3-0#4.pdf' 'http://spij.minjus.gob.pe/Normas/textos/[0-1][0-1]0[1-1]0[6-6]T.pdf' | |
sleep $[ ( RANDOM % 10 ) + 1]m | |
# Bajar fechas 00-01-06 hasta 39-09-09 | |
curl -o '#1#2-0#3-0#4.pdf' 'http://spij.minjus.gob.pe/Normas/textos/[0-3][0-9]0[1-9]0[6-9]T.pdf' | |
sleep $[ ( RANDOM % 10 ) + 1]m |
OlderNewer