Skip to content

Instantly share code, notes, and snippets.

View benroeder's full-sized avatar

Ben Roeder benroeder

View GitHub Profile
@benroeder
benroeder / gzip.js
Created November 29, 2013 15:20 — forked from kig/gzip.js
TarGZ = function(){};
// Load and parse archive, calls onload after loading all files.
TarGZ.load = function(url, onload, onstream, onerror) {
var o = new TarGZ();
o.onload = onload;
o.onerror = onerror;
o.onstream = onstream;
o.load(url);
return o;
@benroeder
benroeder / multifile.js
Created November 29, 2013 15:20 — forked from kig/multifile.js
/* MultiFile - A JavaScript library to load multiple files from
tar archives and json_packed files (see http://gist.github.com/407595)
Example: Loading multiple images from a tarball.
MultiFile.load('images.tar', function(xhr) {
this.files.forEach(function(f) {
var e = document.createElement('div');
document.body.appendChild(e);
var p = document.createElement('p');
@benroeder
benroeder / gist:5309609
Last active December 15, 2015 19:10
pycon 2013 download
from urllib2 import urlopen
from subprocess import Popen, PIPE
from BeautifulSoup import *
page = urlopen('http://pyvideo.org/category/33/pycon-us-2013')
soup = BeautifulSoup(page)
video_url_list = []
count = 0