Skip to content

Instantly share code, notes, and snippets.

View bootcoder's full-sized avatar

Hunter Chapman bootcoder

View GitHub Profile
@bootcoder
bootcoder / 3.1_sql_congress_db_ANSWERS.md
Last active September 21, 2015 21:57
congress_db_answers.md

Build Schema

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,
@bootcoder
bootcoder / quick_sort.rb
Created October 21, 2015 23:36
Sample of Quick sort
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
require_relative 'html_whitespace_cleaner'
require 'nokogiri'
require 'awesome_print'
class Parser
attr_accessor :parsed_data
def initialize
@parsed_data = []
end
@bootcoder
bootcoder / bobo-feedback.md
Created October 30, 2015 19:31
10-30-feedback

BoboLinks


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!

@bootcoder
bootcoder / application.js
Created November 17, 2015 22:39
sample AJAX lecture code
$(document).ready(function() {
console.log("page loaded!");
createUserListener();
gifButtonListener();
});
@bootcoder
bootcoder / snippet.rb
Created November 27, 2015 19:07
advisor_selection_result
{
: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",
@bootcoder
bootcoder / advisor_selection.rb
Created November 27, 2015 19:07
advisor_selection
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
@bootcoder
bootcoder / .bash_profile
Created January 28, 2016 20:04
add_pr_remotes
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/*"
@bootcoder
bootcoder / dogs.rb
Created March 8, 2016 19:58
basic RESTful example (dogs)
#dogs Controller
# dogs INDEX
get '/dogs' do
@dogs = dog.all
erb :'dogs/index'
end
# dogs SHOW
get '/dogs/:id' do
@bootcoder
bootcoder / miniQuery.js
Created March 9, 2016 18:54
miniQuerySample
////////////////////////////////////////
/////////// DBC Mini Query /////////////
////////// Hunter And Masha ////////////
/////// EastBay Pair 5-5-15 ////////////
////////////////////////////////////////
////////////////////////////////////////
//////////////. Module .////////////////
//////////. MiniQuery ./////////////