Skip to content

Instantly share code, notes, and snippets.

@chowse
chowse / gist:796214
Created January 26, 2011 04:11
Simple video embed generation (YouTube and Vimeo)
import re
def url_to_embed(url, **kwargs):
for regex, embed_url in EMBED_PATTERNS:
m = regex.match(url)
if m:
args = dict(DEFAULT_ARGS)
@chowse
chowse / ClientStatsD.js
Created June 22, 2011 20:34
StatsD for Client-Side Interactions
if (!Date.now) {
Date.now = function() {
return (new Date()).getTime();
};
}
var StatsD = (function($, undefined) {