Skip to content

Instantly share code, notes, and snippets.

##Objectives: Use String, Hash, Array, and Enumerable methods to decode a string and discover a secret message

INSPIRATION: http://www.youtube.com/watch?v=Wj1d85CLDOQ

##Skills: String.split, Array.each, Hash.each, Hash.sort_by, Range.to_a, Array.reverse, Array.push, Array.join, String.gsub, Array.index

##Instructions: Comments explain steps to manipulate string

CREATE TABLE flights (
flights_id int,
airline text,
wifi int,
airport text,
outbound_time text,
return_time text,
duration int,
stops int,
price int);
@laptite
laptite / amazon.sql
Last active December 18, 2015 03:38
CREATE TABLE dvd (
dvd_id int,
dvd_name text,
dvd_price int,
dvd_condition text,
dvd_type text);
CREATE TABLE product (
product_id int,
actor_name text,
@laptite
laptite / airbnb.sql
Last active December 18, 2015 03:38
CREATE TABLE booking (
booking_id int,
hometype text,
roomtype text,
accomodate int,
city text);
CREATE TABLE quiz (
question_id int,
question_text text,
Name: Alisa Chang
Github: http://github.com/laptite
Blog: laptite.github.io
Tagline: Dazed and Confused
Profile Picture: http://i1316.photobucket.com/albums/t613/littlenyc/Photoon5-1-13at525PM2_bw_zpsda4c8c4f.jpg
Treehouse Account: http://teamtreehouse.com/alisachang2
CoderWall Account: https://coderwall.com/laptite
CodeSchool Account: http://www.codeschool.com/users/laptitenyc
Favorite Websites:
Item1 is a "plate"
Item2 is a "knife"
Item3 is a "jar of jelly"
Item4 is a "jar of peanut butter"
Item5 is a "loaf of bread"
Item6 is a "bread slice1"
Item7 is a "bread slice2"
"Loaf of bread" contains 12 "bread slices".
"Jar of jelly" contains 100 knife parts of "jelly"
"Jar of peanut butter" contains 25 knife parts of "peanut butter"