Skip to content

Instantly share code, notes, and snippets.

Kevin Modzelewski kmod

Block or report user

Report or block kmod

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View best_benchmark_statistic.py
import random
# rand = lambda: random.normalvariate(0, 1)
rand = lambda: random.lognormvariate(0, 1)
# rand = lambda: random.expovariate(1)
def rand():
t = 0.0
N=1000
P=0.1
for i in xrange(N):
View bloomberg_marriages_stats.py
import csv
class ThisDialect(csv.excel):
lineterminator='\r'
jobnames = list(csv.DictReader(open("job-name.csv", 'U'), dialect=ThisDialect()))[1:]
paircounts = list(csv.DictReader(open("pair-count.csv", 'U'), dialect=ThisDialect()))[1:]
code_to_name = {}
You can’t perform that action at this time.