Skip to content
View seedzzzz.rb
users = do
User.create! email:,
zipcode: Faker::Address.zip_code,
wishlist_id: "579KNEDD72QR",
story: Faker::Lorem.sentences(5).join(" "),
avatar: "{Faker::Lorem.words.join}.png?size=400x400&set=set2"
2.times do

I'll move this over to curriculum when it's more legitimate :)

  • Due Tuesday, we'll have a fun lunch at the Vault and "evaluate" the solutions all together!
  • Your pairs are: ["pat", "jason"], ["shannon", "robbie"], ["chad", "charissa"], ["ryan", "tyler"], ["matt", "emily"], ["ross"]

Project Overview


This has been improved and moved to here

View example.rb
# Assuming we'd called this program from the command-line like this:
# $ ruby example.rb "some word from the command-line"
# Definitions:
# Callstack:
# The place that called (aka invoked) the current code,
# we will return there when it we finish executing the current code.
# Dependency:
View exploration_example.rb
# setup couch
require 'couchrest'
db = CouchRest.database!("")
# google.calendars
# calendar_id
# refresh token
# #
# # Note: Save refresh tokens in secure long-term storage and continue to use them as long as they remain valid. Limits apply to the number of refresh tokens that are issued per client-user combination, and per user across all clients, and these limits are different. If your application requests enough refresh tokens to go over one of the limits, older refresh tokens stop working.

Blowing Bubbles 2 takes this bubble sort:

a = ["e", "a", "c", "b", "d"]
b = 0

while b < a.length
  c = 0
  d = 1

Debugging Shannon's Atom not running Seeing Is Believing correctly


  • Atom's config file had the SiB configuration in the wrong spot, we put it in the right spot
  • We made a wrapper program, sib_ruby through rvm to run on rvm's Ruby 2.2.2
  • We changed the Atom's config to run through rvm's sib_ruby instead of the one in your dotfiles that ultimately uses chruby.
  • We installed SiB 3.0.0.beta.6 in rvm's sib_ruby

Starting a project

Apparently there are rules

  1. You don't know what you're doing. (Therefore: whatever you are doing, it's the wrong thing)
  2. So start with a big high-level test.
View 1_class_refactored_solution.rb
def valid?(card_number)
digits = card_number
.map { |number| number.to_i }
numbers = []
digits.each_with_index do |digit, index|
if index.even?
numbers << digit * 2


What are they?

"Enumerable", in Ruby, is a set of methods for collections. They are used in all the common collection classes. This command will tell you which classes. Try to guess a few before you run it:

$ ruby -e 'p ObjectSpace.each_object(Class).select { |c| c < Enumerable }'
Something went wrong with that request. Please try again.