Skip to content

Instantly share code, notes, and snippets.

@craigquincy
craigquincy / gist:ccd82d032b1feef983bdefccacebe9c4
Last active May 9, 2016
Example of how to create a Mailchimp list through the gibbon api
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|
@craigquincy
craigquincy / gist:3fd3cab981e9866cd52b0e59cd6b2313
Created Apr 26, 2016
gibbon gem retrieve lists and print id & name
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}
@craigquincy
craigquincy / gist:a3cf7f70c7b4bacac7765dd284aaeb2a
Last active Nov 29, 2016
Personalized Learning Plan Outline
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 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: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 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