I hereby claim:
- I am ikks on github.
- I am ikks (https://keybase.io/ikks) on keybase.
- I have a public key whose fingerprint is 945E DEC4 FC3F 24EF 0010 FAEF 1639 E257 4A34 A7EC
To claim this, I am signing this object:
pkgver=1.2.17 | |
mkdir -p $VIRTUAL_ENV/src && cd $VIRTUAL_ENV/src | |
curl -O http://oligarchy.co.uk/xapian/$pkgver/xapian-core-$pkgver.tar.xz && tar xf xapian-core-$pkgver.tar.xz | |
curl -O http://oligarchy.co.uk/xapian/$pkgver/xapian-bindings-$pkgver.tar.xz && tar xf xapian-bindings-$pkgver.tar.xz | |
cd $VIRTUAL_ENV/src/xapian-core-$pkgver | |
./configure --prefix=$VIRTUAL_ENV && make && make install | |
export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib |
iconv -f iso-8859-1 -t utf-8 INPUTFILE | sed 's%^.*<table>%%g;s%</table>%%g;s% x:str%%g' | sed 's%<tr><td>%%g;s%</td><td>%|%g;s%</td></tr>%\n%g' > OUTPUTFILE |
import unicodecsv # pip install unicodecsv | |
import urllib2 | |
def loadfile(url, delimiter=","): | |
"""Loads a file from a URL (a csv one), separated with delimiter | |
returns an array with the contents of the file. | |
""" | |
reader = unicodecsv.reader( | |
urllib2.urlopen(url), | |
encoding='utf-8', |
#!/usr/bin/python2.7 | |
import argparse | |
import gspread # Pip install it | |
def print_spreadsheet(email, password, key): | |
"""print_spreadsheet(email, password, key) | |
Prints out a Google spreadsheet | |
""" |
import time | |
import httplib | |
from datetime import datetime | |
from collections import OrderedDict | |
from django.conf import settings | |
from constance import config | |
# You can use soap_call(prepare_data()) |
import hashlib | |
def payu_rounder(value): | |
u"""value is a unicode, returns the round according to Payu documentation | |
to be used by confirmationUrl | |
>>> payu_rounder(u'150.25') | |
u'150.2' | |
>>> payu_rounder(u'150.35') | |
u'150.4' | |
>>> payu_rounder(u'150.34') |
def encode_string_with_links(tweet): | |
"""Only used by the get tweets task | |
""" | |
MENTION_REGEX = re.compile(r'''(@(\w{1,15}\b))''', re.UNICODE) | |
HASHTAG_REGEX = re.compile(r'''(#(\w{1,30}\b))''', re.UNICODE) | |
URL_REGEX = re.compile(r'''((https://|http://)[^ <>'"{}|\\^`[\]]*)''') | |
text = tweet['text'].replace('\n', ' ') | |
if text.endswith(u'\u2026'): | |
# If we ended with ..., then we have to check if we have an image |
digraph G { | |
rankdir=LR | |
subgraph cluster_2 { | |
label="Cambio de Estado de Pedido - POST" | |
a3 -> p3 [label="1. Informa cambio estado"] | |
p3 -> a3 [label="2. Resultado"] | |
} | |
subgraph cluster_1 { | |
label="Confirmación Almacenamiento - POST" | |
a2 -> p2 [label="1. Informa confirmación"] |
digraph ciclovida { | |
d -> v; | |
c -> e; | |
o -> i1; | |
i3 -> m [label = "error"]; | |
v -> o [label = "Confirma"]; | |
e -> o [label = "ok"]; |
I hereby claim:
To claim this, I am signing this object: