Skip to content

Instantly share code, notes, and snippets.

@BrainScraps
BrainScraps / Gemfile
Last active December 19, 2015 12:09 — forked from janester/quickly.rb
Added .env operations and the two dependency files (lots more documentation)
source 'https://rubygems.org'
gem 'rails', '3.2.13'
gem 'pg'
gem 'nokogiri', '~> 1.5.0'
group :development do
gem 'pry-rails'
gem 'pry-debugger'
@BrainScraps
BrainScraps / parsing.rb
Last active December 19, 2015 02:18 — forked from janester/parsing.rb
I did not do the bonuses. But whatever.
require "pry"
require "pry-debugger"
require "soundcloud"
require "nokogiri"
require "open-uri"
#1. Parse through the wdi2 hash and make a function that returns a hash where the
#keys are each persons name and the value is their favorite movies
wdi2 = {:instructors => [
{:name => "jane", :gender => "female", :favorite_movies => ["the dark knight rises", "the dark knight", "batman begins"], :favorite_foods =>["tacos", "tamales", "enchiladas"]},