Skip to content

Instantly share code, notes, and snippets.

users = [
{:user => "Robert Ross", :role => "Instructor"},
{:user => "Patrick Everman", :role => "Student"},
{:user => "Quincy Iheme", :role => "TA"},
{:user => "Roxanne", :role => "Student"}
]
#Alternate syntax
users = [
@verner-dz
verner-dz / gist:1ef936034c4d6dc6c727
Last active February 17, 2016 16:16
Week 2 Bonus HW
HW Question
Part 1
Write a method that can allow a user to enter as many stories as they want.
Each story has a headline and upvotes.
Ask the user to enter the headlines and upvotes as many times as they requested.
Part 2
Store each of those stories in a seperate hash. So if a user said they wanted to
enter 3 stories, there must be 3 hashes.
Received Pickable Boxes data: {:task_id=>"1561546453", :algo_pickable_box_ids=>[2956353, 2956767, 2956980, 3046390, 3047369, 3047497, 3047578, 3048096, 3050221, 3069674, 3122107, 3122717, 3122729, 3122748], :missed_pickable_box_ids=>[3045114, 2948437, 3116664, 3043591, 3037074, 2923019, 3043518, 3036014, 3024699, 2952406, 3036919, 2941481, 2955789, 2937093, 3095202, 3047261, 2951821, 3048600, 3050514, 3048706, 3046501, 3041362, 3118258, 2943967, 3042138, 2847834, 2954792, 2951512, 3110237, 3041739, 2952752, 3037278, 3111240, 3110371, 3046331, 3046690, 3044225, 3045675, 3039108, 2936038, 3046592, 3118729, 2948246, 3031552, 3032894, 2928798, 3087403, 3002334, 3044228, 2951568, 2716278, 3048080, 2950066, 3122089, 3037346, 3075346, 2951324, 3083025, 2949295, 2955796, 3046273, 3046397, 3041830, 3050408, 3044472, 2958450, 3082990, 2949108, 3046575, 3122563, 2951844, 2950582, 2953038, 3032252, 3022798, 3045313, 3043700, 3115222, 3039289, 2953187, 3048553, 3077034, 3047811, 3050427, 2956234, 3061434, 3108903, 3045532