Skip to content

Instantly share code, notes, and snippets.

@gapato
gapato / gist:60dc9498d6ce53d6d19b
Last active August 29, 2015 14:06
Meteo2Text
#!/usr/bin/env python
# coding: utf-8
from bs4 import BeautifulSoup
import urllib
import urllib2
import re
import sys
ws_re = re.compile('(\d+) km/h')
@gapato
gapato / lbc2num.sh
Created July 18, 2014 16:48
Grab phone number from leboncoin.fr ad url or id
#!/bin/sh
PHONE_API_URL=http://www2.leboncoin.fr/ajapi/get/phone?list_id=
quit () {
echo "No phone number for this ID"
exit
}
while (($#)); do
@gapato
gapato / pgfplot boilerplate
Created March 4, 2014 14:13
pgfplots example/boilerplate
\documentclass[draft]{article}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepackage{pgfplotstable}
\begin{document}
%% Linear plot