Skip to content

Instantly share code, notes, and snippets.

@craigquincy
craigquincy / gist:3fd3cab981e9866cd52b0e59cd6b2313
Created April 26, 2016 21:14
gibbon gem retrieve lists and print id & name
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:ccd82d032b1feef983bdefccacebe9c4
Last active May 9, 2016 21:11
Example of how to create a Mailchimp list through the gibbon api
# 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:a3cf7f70c7b4bacac7765dd284aaeb2a
Last active November 29, 2016 00:47
Personalized Learning Plan Outline
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
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;
@craigquincy
craigquincy / gist:4f533a62b6d43b6efa76b6479ac29685
Created August 30, 2017 01:37
Deck Builder for PT JS course
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]
\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