Skip to content

Instantly share code, notes, and snippets.

View shabda's full-sized avatar

Shabda Raaj shabda

View GitHub Profile
@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
@shabda
shabda / binsearch.py
Created November 24, 2012 11:07 — forked from akshar-raaj/binsearch
Binary Search
not_found = -1
import unittest
class TestBinS(unittest.TestCase):
def test_empty(self):
lst = []
key = 0
self.assertEquals(binsearch(lst, 0,), -1)
def test_equal(self):
lst = [10, 10, 10, 10]
@shabda
shabda / default.coffee
Created December 12, 2011 09:07 — forked from dheerosaur/default.js
Hiding stuff, go directly to "My active tickets" in unfuddle
// Reusable extension for jQuery so that we can hide jQuery objects
// and hide them. We will show an arrow at the top-right corner which
// will toggle the display of these.
// Examples:
//
// For github.com.js:
// $("#header").toggleStuff();
//
// Some random site:
// $("#report_attachment").parent().next().toggleStuff()