Skip to content

Instantly share code, notes, and snippets.

@samtalks
Created October 1, 2013 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samtalks/6778435 to your computer and use it in GitHub Desktop.
Save samtalks/6778435 to your computer and use it in GitHub Desktop.
# Movie collection by genre
movies = {
:animation => ["Incredibles", "Little Mermaid", "Cars"]
:comedy => ["Zoolander", "Groundhog Day"],
:drama => ["Little Women", "JFK", "Black Stallion"]
}
# Recipes with ingredients
recipes = {
:rice => ["rice", "water"]
:popcorn => ["dried corn", "butter"],
:hot_dogs => ["weiners", "buns", "ketchup", "sauerkraut"]
}
# User profiles where each user has a list of favorite colors along with 3 personal essays, essay_1, essay_2, essay_3
user_profiles = {
"John Smith" => [{:color => "green"}, {:essays => ["essay_1", "essay_2", "essay_3"]}]
"Sally Lee" => [{:color => "blue"}, {:essays => ["essay_1", "essay_2", "essay_3"]}],
"Nat King" => [{:color => "red"}, {:essays => ["essay_1", "essay_2", "essay_3"]}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment