Skip to content

Instantly share code, notes, and snippets.

View uppfinnarjohnny's full-sized avatar

Johnny Karhinen uppfinnarjohnny

View GitHub Profile
@uppfinnarjohnny
uppfinnarjohnny / playcount.py
Created April 20, 2012 05:54 — forked from archie/playcount.py
Playcount.py
import sys
import random
import math
from collections import defaultdict
if len(sys.argv) != 3:
print "Usage: ./playcount.py <file_to_parse> <output_counts_to_file>"
exit(1)
countmap = defaultdict(int)