Skip to content

Instantly share code, notes, and snippets.

View shabda's full-sized avatar

Shabda Raaj shabda

View GitHub Profile
import functools
h = 100
b = range
r = functools.partial(b, 0)
yz = lambda y, z: dict(zip(r(h, y), [z]*h))
a = dict(zip(b(100), b(100)))
a.update(yz(3, "F"))
a.update(yz(5, "B"))
a.update(yz(15, "FB"))
print a.values()[1:]
@shabda
shabda / .json
Last active September 2, 2015 12:25 — forked from kyogesh/.json
[{"bin":"0-2","grad_percentage_total":0,"grad_percentage_other_college":0,"n_total_students":0,"n_grad_this_college":0,"n_grad_this_major":0,"grad_percentage_this_major":0,"n_grad_other_college":0,"bin_sort_order":0,"n_grad_institution_wide":0,"n_grad_total":0,"grad_percentage_diff_between_total_and_institution":0,"grad_percentage_institution_wide":0,"grad_percentage_this_college":0},{"bin":"3-5","grad_percentage_total":0,"grad_percentage_other_college":0,"n_total_students":0,"n_grad_this_college":0,"n_grad_this_major":0,"grad_percentage_this_major":0,"n_grad_other_college":0,"bin_sort_order":1,"n_grad_institution_wide":5,"n_grad_total":0,"grad_percentage_diff_between_total_and_institution":0,"grad_percentage_institution_wide":0,"grad_percentage_this_college":0},{"bin":"6-8","grad_percentage_total":0,"grad_percentage_other_college":0,"n_total_students":0,"n_grad_this_college":0,"n_grad_this_major":0,"grad_percentage_this_major":0,"n_grad_other_college":0,"bin_sort_order":2,"n_grad_institution_wide":12,"n_grad