View dataStream.js
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
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); |
View timer.py
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
'''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 sample_crawler
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
#! /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 |
View create_contact.py
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 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'), |
View gist:7108968
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
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 |
View thumbnail
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
{% 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--> |