Skip to content

Instantly share code, notes, and snippets.

View chhhris's full-sized avatar
🚁
Working From Helicopter

Christopher Lake chhhris

🚁
Working From Helicopter
View GitHub Profile
# Construct an array with your favorite foods. It should have at least 5 elements.
fav_foods = ["penne pasta with garlic and oil", "yellow cherries", "milk shakes", "french fries", "bacon cheeseburgers"]
# Write a puts which returns your most favorite food out of the array.
fav_foods[4]
# Construct an array with the colors of the rainbow (ROYGBIV)
# jukebox.rb
class Jukebox
attr_accessor :songs
def initialize(songs)
@songs = songs
end
# assignment.rb
# FizzBuzz - The Programmer's Stairway to Heaven
# Define the fizzbuzz method to do the following: 10pts
# Use the modulo % method (divisible by)
# 2 % 2 #=> true
# 1 % 2 #=> false
# If a number is divisible by 3, puts "Fizz".
# If a number is divisible by 5, puts "Buzz".
# If a number is divisible by 3 and 5, puts "FizzBuzz"
# write an expression that returns true by using ==
2 == 1 + 1
# write an expression that returns false using ==
2 == 1 + 3
# write an expression that returns true using !=
1 != 2
DROP TABLE IF EXISTS projects;
DROP TABLE IF EXISTS category;
DROP TABLE IF EXISTS users;
DROP TABLE IF EXISTS pledges;
CREATE TABLE projects (
id int,
user_id int,
category_id int,
title text,
round flat object = "Plate"
long silver object = "Knife"
sharp pointy end of Knife = "Knife-Blade"
round thick end of Knife, opposite Knife-Blade = "Knife-Handle"
clear round glass jar with red goo insde = "Jelly"
clear round plastic jar with brown mush inside = "Peanut-Butter"
soft rectangular brown object = "Loaf-of-Bread"
alien = "You"
appendage at end of alien's arm = "Hand"
round flat object = "Plate"
long silver object = "Knife"
sharp pointy end of Knife = "Knife-Blade"
round thick end of Knife, opposite Knife-Blade = "Knife-Handle"
clear round glass jar with red goo insde = "Jelly"
clear round plastic jar with brown mush inside = "Peanut-Butter"
soft rectangular brown object = "Loaf-of-Bread"
alien = "You"
appendage at end of alien's arm = "Hand"
Your Name: Chris Lake
Github Username: Chhhris
Blog Url (if you don't already have a blog it will be githubusername.github.io): http://chhhris.tumblr.com/
Tagline: Hacker in Residence
Profile Picture (something normal, a headshot, of a good reusable size that can be easily cropped): http://bit.ly/132Fv5q
Treehouse Account: teamtreehouse.com/chhhris
CoderWall Account: https://coderwall.com/chhhris
CodeSchool Account: http://www.codeschool.com/users/chhhris
Favorite Websites: Evernote.com, Instapaper.com, AVC.com
Previous Work Experience: Product Manager & VP Strategy, Unigo.com; Analyst, McKinsey & Company Investment Office