This file contains hidden or 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
.formOutputList { | |
margin-left: 1em; | |
margin-bottom: 2em; | |
column-count: 3; | |
} | |
.formOutputList + .formOutputList { | |
border-top: 2px dashed darkgray; | |
padding-top: 2em; | |
} |
This file contains hidden or 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 sys, os, traceback, types | |
from winreg import * | |
from subprocess import check_output, CalledProcessError | |
import pyuac | |
def where(cmd): | |
try: | |
return check_output(['where', cmd]).decode(sys.stdout.encoding).strip() | |
except CalledProcessError as e: | |
return None |
This file contains hidden or 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 urllib | |
import os | |
import flickrapi | |
api_key = "" | |
api_secret = "" | |
def download_set(user_id, set_id): | |
flickr = flickrapi.FlickrAPI(api_key, api_secret, format='parsed-json', cache=True) | |
photos = flickr.photosets.getPhotos(user_id=user_id, photoset_id=set_id) |
This file contains hidden or 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 sys | |
import re | |
import os | |
import numpy | |
rParts = [ | |
("Your Assessment of this Paper's Contribution to HCI", "contribution"), | |
("Overall Rating", "rating"), | |
("Expertise", "expertise"), | |
("The Review", "review"), |
This file contains hidden or 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 matplotlib.pyplot as plt | |
import numpy as np | |
from scipy.stats import linregress | |
from scipy.optimize import curve_fit | |
data = [ | |
(1982, 165), | |
(1983, 176), | |
(1985, 170), | |
(1986, 122), |
This file contains hidden or 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
(function(){ | |
// http://coding.smashingmagazine.com/2010/05/23/make-your-own-bookmarklets-with-jquery/ | |
// http://subsimple.com/bookmarklets/jsbuilder.htm | |
if(window.jQuery === undefined) { | |
var script = document.createElement("script"); | |
script.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"; | |
script.onload = script.onreadystatechange = function() { | |
bookmarklet(); | |
}; |