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 |
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
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 |
NewerOlder