Skip to content

Instantly share code, notes, and snippets.

View bootcoder's full-sized avatar

Hunter Chapman bootcoder

View GitHub Profile
@bootcoder
bootcoder / 4-9-2016-notes.md
Created March 15, 2016 20:31
April-2016-hackathon-notes

Civic Hack Theme

  • Consider closed list of API's vs: all api's

Time

4/9/2016

  • Start: 9:00 AM
  • Lunch: 1:00 PM
  • Dinner: 7:00 PM
@bootcoder
bootcoder / .bash_profile
Last active December 12, 2020 13:17
bash_profile - rbenv
# echo is like puts for bash (bash is the program running in your terminal)
echo "Loading ~/.bash_profile a shell script that runs in every new terminal you open"
# $VARIABLE will render before the rest of the command is executed
echo "Logged in as $USER at $(hostname)"
# Rbenv autocomplete and shims
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# Path for RBENV
test -d $HOME/.rbenv/ && PATH="$HOME/.rbenv/bin:$PATH"
@bootcoder
bootcoder / miniQuery.js
Created March 9, 2016 18:54
miniQuerySample
////////////////////////////////////////
/////////// DBC Mini Query /////////////
////////// Hunter And Masha ////////////
/////// EastBay Pair 5-5-15 ////////////
////////////////////////////////////////
////////////////////////////////////////
//////////////. Module .////////////////
//////////. MiniQuery ./////////////
@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 / .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 / 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 / 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 / application.js
Created November 17, 2015 22:39
sample AJAX lecture code
$(document).ready(function() {
console.log("page loaded!");
createUserListener();
gifButtonListener();
});
@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!

require_relative 'html_whitespace_cleaner'
require 'nokogiri'
require 'awesome_print'
class Parser
attr_accessor :parsed_data
def initialize
@parsed_data = []
end