View Ruby & Rails install on OS X
\curl -sSL https://get.rvm.io | bash -s stable --ruby | |
xcode-select --install | |
gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 —with-xml2-lib=/usr/lib/ | |
gem install rails |
View gist:4f533a62b6d43b6efa76b6479ac29685
let faceCards = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] | |
let faceNames = [undefined, "Ace", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Jack", "Queen", "King"] | |
let cards = [ | |
["Spades", faceCards], | |
["Clubs", faceCards], | |
["Hearts", faceCards], | |
["Diamonds", faceCards] |
View Card shuffle
var suits = ["Hearts", "Diamonds", "Spades", "Clovers"]; | |
var faces = ["Ace", 2, 3, 4, 5, 6, 7, 8, 9, 10, "Jack", "Queen", "Kings", "Joker"] | |
var deck = []; | |
for(suit of suits){ | |
for(face of faces){ | |
deck.push(face + " of " + suit); | |
} | |
} | |
function checkIfShuffled(deck) { | |
count = 0; |
View gist:a3cf7f70c7b4bacac7765dd284aaeb2a
Q4 Focus: | |
Full Stack - Auth, Db, 90 minute crud app, Build & Burn Angular | |
Comp Sci Unit 0,1,2,3,4,5 | |
Capstone (on hold, but you could start gathering ideas) | |
Whiteboard Interviews Practice, Practice, Practice, Cracking the Code | |
Career / Job / Placement |
View gist:ccd82d032b1feef983bdefccacebe9c4
# create lists in mailchimp using gibbon gem (not currently inthe docs) | |
lists = [ | |
"Climbing", | |
"Fly Fishing", | |
"Gear" | |
] | |
gibbon = Gibbon::Request.new | |
lists.each do |list| |
View gist:3fd3cab981e9866cd52b0e59cd6b2313
gibbon = Gibbon::Request.new | |
data = Hashie::Mash.new gibbon.lists.retrieve(params: {"count": "200"}) | |
lists = data.lists | |
lists.each {|list| puts list.name + ' : ' + list.id} |