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
\documentclass[draft]{article} | |
\usepackage{pgfplots} | |
\pgfplotsset{compat=newest} | |
\usepackage{pgfplotstable} | |
\begin{document} | |
%% Linear plot |
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 | |
PHONE_API_URL=http://www2.leboncoin.fr/ajapi/get/phone?list_id= | |
quit () { | |
echo "No phone number for this ID" | |
exit | |
} | |
while (($#)); do |
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 | |
from bs4 import BeautifulSoup | |
import urllib | |
import urllib2 | |
import re | |
import sys | |
ws_re = re.compile('(\d+) km/h') |
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
from numpy import genfromtxt, average, median, std, percentile | |
from sys import argv, exit | |
if len(argv) < 3: | |
print 'Usage: {0} <series1.txt> <series2.txt> [map lambda]'.format(argv[0]) | |
exit(1) | |
lam = None | |
if len(argv) == 4: | |
lam = eval(argv[3]) |
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
{ | |
init: function(elevators, floors) { | |
document.elevators = elevators; | |
document.way = function() { | |
c = this.currentFloor(); | |
if (this.destinationQueue.length === 0) { | |
return null; | |
} |
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/python | |
from __future__ import division | |
import sys | |
import csv | |
import numpy # MATLAB-like numerical library | |
import networkx as nx # To plot the graph | |
import matplotlib.pyplot as plt | |
from matplotlib.patches import FancyArrowPatch, Circle |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 math, json, glob, time | |
from numpy import * | |
from matplotlib.pyplot import * | |
from matplotlib import animation | |
# http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Python | |
def deg2num(lat_deg, lon_deg): | |
lat_rad = math.radians(lat_deg) | |
x = (lon_deg + 180.0) / 360.0 |
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 | |
# | |
# Very small script to fix touchscreen axis on a Latitude XT2 when in portrait mode | |
# (linux, xrandr) | |
# | |
rotation=$(xrandr | head -n1 | sed 's/.*current \([^,]\+\),.*/\1/') | |
if [ "$rotation" == '1280 x 800' ] |
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 | |
app='equipetv_live21/' | |
flashVer='LNX 11,2,202,332' | |
swfUrl='http://www.lequipe21.fr/jwplayer/jwplayer.flash.swf' | |
tcUrl='rtmp://vipwowza.yacast.net/equipetv_live21/' | |
pageUrl='http://www.lequipe21.fr' | |
host='vipwowza.yacast.net' | |
playpath='live21' | |
bufferSize=2000 # milliseconds |
OlderNewer