Skip to content

Instantly share code, notes, and snippets.

View bensternthal's full-sized avatar
😻

Benjamin Sternthal bensternthal

😻
View GitHub Profile
@bensternthal
bensternthal / dirtocsv.py
Last active December 19, 2015 02:49
Re-writing a bash script Justin wrote in python.
import csv
import os
from os.path import join, getsize
ROOTURL = 'http://www.mozilla.org'
ROOTSVN = 'http://viewvc.svn.mozilla.org/vc/projects/mozilla.org/trunk'
with open('test.csv', 'wb') as csvfile:
csvwriter = csv.writer(csvfile, delimiter=',',
quotechar='|', quoting=csv.QUOTE_MINIMAL)
@bensternthal
bensternthal / gist:5448568
Created April 24, 2013 00:14
share on modal
// Close modal on clicking close button or background.
$document.on('click', '#modal .close', flicks.closeModal);
//$document.on('click', '#modal.bg_close', flicks.closeModal);
$(function() {
/* Share Widget *******/
var $share = $('.share');
var $popup = $share.find('.popup');