Skip to content

Instantly share code, notes, and snippets.

View hsharrison's full-sized avatar

Henry S. Harrison hsharrison

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hsharrison
hsharrison / gradeEmailer.py
Last active October 4, 2016 23:32 — forked from drussellmrichie/gradeEmailer.py
Script to extract HW grades from a table, and send separate emails to students with their grades. Potentially useful for a TA of large classes.
"""Usage:
gradeEmailer.py [--name=NAME] [--password=PASSWORD] [--dry-run] <sender-email> <grades-path>
Options:
--name=NAME The name of the grader.
Used in the signature and From field of the email.
If not given, <sender-email> will be used.
--password=PASSWORD The password to the sender's email account.
If not given, it will be prompted for.
--dry-run To test, send emails to yourself instead of to the students.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hsharrison
hsharrison / croutonwheel
Last active August 29, 2015 14:10
croutonwheel modification
#!/bin/sh -e
# Copyright (c) 2014 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
. "`dirname "$0"`/../installer/functions"
# Default button numbers
u=4
d=5
@hsharrison
hsharrison / make-zotero-pane-collapsable
Created September 7, 2014 16:31
make-zotero-pane-collapsable
#!/bin/bash
# Invoke on zotero-*.xpi Firefox extension file.
# Changes zoteroPane.xul to make right pane collapsable.
TARGET=chrome/content/zotero/zoteroPane.xul
TMP_DIR=/tmp/$(basename "$0")
SCRIPT='/<splitter id="zotero-items-splitter"/ {
N
N
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hsharrison
hsharrison / vrpn_install.sh
Created June 26, 2014 18:06
installing vrpn
wget http://www.cs.unc.edu/Research/vrpn/downloads/vrpn_07_31.zip
unzip vrpn_07_31.zip
rm vrpn_07_31.zip
# compile quat
cd vrpn/quat
sed -i 's@#HW_OS := pc_linux64@HW_OS := pc_linux64@g' Makefile
make
# compile vrpn