CREATE TABLE congress_members (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name VARCHAR(64) NOT NULL,
party VARCHAR(64) NOT NULL,
location VARCHAR(64) NOT NULL,
grade_1996 REAL,
grade_current REAL,
This file contains hidden or 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
def quicksort(array, from=0, to=nil) | |
if to == nil | |
# Sort the whole array, by default | |
to = array.count - 1 | |
end | |
if from >= to | |
# Done sorting | |
return | |
end |
This file contains hidden or 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
require_relative 'html_whitespace_cleaner' | |
require 'nokogiri' | |
require 'awesome_print' | |
class Parser | |
attr_accessor :parsed_data | |
def initialize | |
@parsed_data = [] | |
end |
SF Bobolinks 2015 Phase 1 Lectures, Pairing, Challenges Agree Teachers, Mentors, Peers Agree Agree just within my comfort zone Agree Agree No FALSE Somedays TRUE TRUE Agree 5
SF Bobolinks 2015 Phase 1 Lectures, Pairing, Challenges, Breakouts, Other Strongly Agree Teachers, Mentors, Peers Strongly Agree Agree N/A Neutral Strongly Agree Yes TRUE Rarely TRUE TRUE Strongly Agree 35 This place is a dream come true, don't know what I did to deserve this but I'm very, very grateful!
This file contains hidden or 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
$(document).ready(function() { | |
console.log("page loaded!"); | |
createUserListener(); | |
gifButtonListener(); | |
}); | |
This file contains hidden or 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
{ | |
:Hunter => [ | |
[ 0] "Michael Whelpley", | |
[ 1] "Mike Cerrone", | |
[ 2] "Shawn Watson", | |
[ 3] "Christopher Mark", | |
[ 4] "Kai Huang", | |
[ 5] "Daniel Woznicki", | |
[ 6] "Abraham Clark", | |
[ 7] "Nathan Park", |
This file contains hidden or 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
require 'awesome_print' | |
$student_arr = ["Christopher Mark","Eunice Choi","Jenna Andersen","Jupiter Baudot","Kai Huang","Kim Allen","Mary Engelbrecht","Mike Cerrone","Nathan Park","Paul Etscheit","Rosy Sinclair-Chin(Rosslyn)","Shawn Watson","Andrew Blum","Armani Saldana","Cecilia 'CJ' Joulain","Danielle Cameron","Daniel Woznicki","Deanna Warren","Eran Chazan","Eric Dell'Aringa","Gouron Paul","Isaac Lee","Jeremy Powell","Joseph Marion","Joshua Kim","Kyle Smith","Mark Janzer","Nicole Yee","Ovi Calvo","Peter Wiebe","Steven Broderick","Abraham Clark","Amaar Fazlani","Bernice Anne W Chua","Brian Bensch","Fatma Ocal","Gregory Wehmeier","Jon Clayton","Karla King","Malia Lehrer","Michael Whelpley","Natasha Thapliyal","Nil Thacker","Shawn Spears","Tal Schwartz","Trevor Newcomb","Walter Kerr","William Brinkert","Jamar Gibbs"] | |
$instructor_arr = ["Hunter", "Shambhavi", "Julian", "Jordan"] | |
$results_hash = {} | |
# We want to distribute all students evenly among instructors |
This file contains hidden or 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
function add_pr_remotes() { | |
mv .git/config .git/config-orig | |
awk '/remote "origin"/ { | |
print $0 | |
getline; | |
print $0 | |
getline; | |
print $0 | |
print "\tfetch = +refs/pull/*/head:refs/remotes/origin/pr/*" |
This file contains hidden or 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
#dogs Controller | |
# dogs INDEX | |
get '/dogs' do | |
@dogs = dog.all | |
erb :'dogs/index' | |
end | |
# dogs SHOW | |
get '/dogs/:id' do |
This file contains hidden or 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
//////////////////////////////////////// | |
/////////// DBC Mini Query ///////////// | |
////////// Hunter And Masha //////////// | |
/////// EastBay Pair 5-5-15 //////////// | |
//////////////////////////////////////// | |
//////////////////////////////////////// | |
//////////////. Module .//////////////// | |
//////////. MiniQuery .///////////// |