Skip to content

Instantly share code, notes, and snippets.

import atom.data
import gdata.data
import gdata.contacts.client
import gdata.contacts.data
# ...
def create_contact(gd_client):
new_contact = gdata.contacts.data.ContactEntry()
# Set the contact's name.
new_contact.name = gdata.data.Name(
given_name=gdata.data.GivenName(text='Elizabeth'),
#! /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 scrape_medium.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):
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);
{% block vid_list %}
<div class="container">
{% for vid in vid_list %}
<div class="four columns">
<!--Release-->
<div class="release">
<div class="release-visual">
<img src="images/covers/1.jpg" alt="The Chemical Brothers"> <!-- Load thumbnail here-->
UnknownBackendException at /v/
No exception supplied
Request Method: GET
Request URL: http://127.0.0.1:8000/v/
Django Version: 1.5.4
Exception Type: UnknownBackendException
Exception Location: /home/w0w/lmvapp/local/lib/python2.7/site-packages/embed_video/backends.py in detect_backend, line 42