Skip to content

Instantly share code, notes, and snippets.

View thumbnail
{% block vid_list %}
<div class="container">
{% for vid in vid_list %}
<div class="four columns">
<div class="release">
<div class="release-visual">
<img src="images/covers/1.jpg" alt="The Chemical Brothers"> <!-- Load thumbnail here-->
View gist:7108968
UnknownBackendException at /v/
No exception supplied
Request Method: GET
Request URL:
Django Version: 1.5.4
Exception Type: UnknownBackendException
Exception Location: /home/w0w/lmvapp/local/lib/python2.7/site-packages/embed_video/ in detect_backend, line 42
import gdata.contacts.client
# ...
def create_contact(gd_client):
new_contact =
# Set the contact's name. ='Elizabeth'),
View sample_crawler
#! /usr/bin/coffee
# Install below packages before executing
# yum install nodejs npm redis
# npm -g install coffeescript
# npm -g install simplecrawler
# npm -g install redis
# USAGE: coffee >> data.csv
'''Handy Class for time monitoring'''
from __future__ import print_function
import time
class timer(object):
def __init__(self, func=print):
self.func = func
def __enter__(self):
View dataStream.js
var Stream = require('stream').Stream
, util = require('util');
var Collector = function() {
this._writtenBytes = 0;
this._data = null;
this.readable = true;
this.writable = true;
util.inherits(Collector, Stream);