This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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() |