Skip to content

Instantly share code, notes, and snippets.

View wskinner's full-sized avatar

Will Skinner wskinner

View GitHub Profile

Keybase proof

I hereby claim:

  • I am wskinner on github.
  • I am wsk (https://keybase.io/wsk) on keybase.
  • I have a public key whose fingerprint is 9D22 C8BE 3FAB 487E 15E3 2658 379A 1613 6DC2 1A27

To claim this, I am signing this object:

{
"metadata": {
"name": "",
"signature": "sha256:50bb1caeb855ad65d3fbb925369b7c0c1a1ff7e5d04bbaaf4a9885c56bd7807a"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
### Keybase proof
I hereby claim:
* I am wskinner on github.
* I am wsk (https://keybase.io/wsk) on keybase.
* I have a public key whose fingerprint is BBB1 66BF 1977 F5FE 3BC4 58C0 C445 1922 C057 DD60
To claim this, I am signing this object:
@wskinner
wskinner / betterstats.py
Last active December 14, 2015 22:39
A script to calculate grade statistics for UC Berkeley Computer Science courses after removing scores of 0. This gives a more accurate representation of average score and spread.
# Run like this:
# glookup -s $assignment_name -b 0.1 | python betterstats.py
from sys import stdin
import re
def getBuckets():
buckets = []
bucket_patt = r'\s*([0-9]+\.[0-9]+)\s+\-\s*([0-9]+\.[0-9]+)\:\s*([0-9]+).*'
your_patt = r'Your score\:.*?([0-9]+\.[0-9]+)'