Skip to content

Instantly share code, notes, and snippets.

@yourcelf
yourcelf / mplayer-rifftrax.py
Created May 18, 2012 22:59
Command line wrapper for mplayer to make rifftrax syncing easier
#!/usr/bin/env python
import sys
import time
import subprocess
def main(vid, aud):
try:
vidproc = subprocess.Popen(["mplayer", vid], stdin=subprocess.PIPE)
audproc = subprocess.Popen(["mplayer", aud], stdin=subprocess.PIPE)
@yourcelf
yourcelf / TileLayer.Bing.js
Created October 31, 2011 22:17 — forked from pagameba/TileLayer.Bing.js
Leaflet Bing layer
var bounds_intersects = function(a, b) {
return (
a.contains(b._northEast) ||
a.contains(b._southWest) ||
b.contains(a._northEast) ||
b.contains(a._southWest)
);
};
L.TileLayer.Bing = L.TileLayer.extend({