Skip to content

Instantly share code, notes, and snippets.

@henningpohl
henningpohl / custom.css
Created November 6, 2023 10:35
PCS Reviews CSS
.formOutputList {
margin-left: 1em;
margin-bottom: 2em;
column-count: 3;
}
.formOutputList + .formOutputList {
border-top: 2px dashed darkgray;
padding-top: 2em;
}
@henningpohl
henningpohl / 2017_Authors.csv
Last active December 15, 2017 12:26
CHI 2018 Committee
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
country;institution;name
China;Tsinghua University;Xin Yi
China;Tsinghua University;Chun Yu
China;Tsinghua University;Weijie Xu
United States;Stony Brook University;Xiaojun Bi
China;Tsinghua University;Yuanchun Shi
Germany;Technische Universität München;Simon Schenk
Germany;Technische Universität München;Marc Dreiser
Germany;Technische Universität München;Gerhard Rigoll
Germany;Technische Universität München;Michael Dorr
@henningpohl
henningpohl / Setup_file_handlers.py
Last active August 6, 2019 03:54
Setting up handling for python files on Windows. Also adds the 'Edit with IDLE' and 'Edit with Spyder' context menu entries.
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
@henningpohl
henningpohl / FlickrSetDownloader.py
Created April 30, 2015 15:41
Download original files of photos in a flickr photoset
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)
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"),
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),
@henningpohl
henningpohl / getRawPageContent
Created April 8, 2013 16:57
Bookmarklet to crawl a page for iframes, embeds and links and render those as easy to access list.
(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();
};