- fork https://github.com/assemblymade/coderwall
- clone your project
- download VirtualBox 4.3.12 and associated extension pack from https://www.virtualbox.org/wiki/Download_Old_Builds_4_3
- download Vagrant 1.6.5 from http://www.vagrantup.com/downloads.html
- install Virtual Box
- install associated extension pack
- install vagrant
- install vagrant plugins (in terminal)
- Keri Clowes - drank-app.herokuapp.com
- Rachel Logie - http://picky-eater.herokuapp.com/
- Jenny Allar - seriously.itsgifnotjif.com
- Ellie Schneiders - ellieandnick.herokuapp.com
- Scott Skender - http://langua.herokuapp.com/
- Martha Berner - http://the-gifthorse.herokuapp.com/
- Nathanael Burt - one-feed-staging.herokuapp.com
____ _ _ _ __ _ _
/ __ \ (_) | | | | / _| | ( )
| | | |_ _ _ ___| | _| | ___| |_| |_|/ ___
| | | | | | | |/ __| |/ | |/ _ | _| __| / __|
| |__| | |_| | | (__| <| | __| | | |_ \__ \
\___\_\\__,_|_|\___|_|\_|_|\___|_| \__| |___/
| _ \ | | | | | | / _|
| |_) | __ _| |_| |_| | ___ ___ | |_
| _ < / _` | __| __| |/ _ \ / _ \| _|
| |_) | (_| | |_| |_| | __/ | (_) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = [1,2,3,2,2,1,4,5,4,3] | |
result = data.reduce(Hash.new {|hash, key| hash[key] = []}) do |hash, number| | |
hash[number] << number | |
hash | |
end | |
result = {} | |
data.each do |number| | |
result[number] ||= [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'faraday' | |
require 'json' | |
class HttpResponse | |
def initialize(url) | |
@response = Faraday.get url | |
end | |
def headers | |
@response.body |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Dogs | |
POOR = (0..5).to_a.sample | |
AVERAGE = (6..10).to_a.sample | |
EXCELLENT = (11..15).to_a.sample | |
def initialize | |
joe = { | |
:name => {:first => "Joe", :last => "Smith"}, | |
:owner_quality => EXCELLENT | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Dogs | |
POOR = (0..5).to_a.sample | |
AVERAGE = (6..10).to_a.sample | |
EXCELLENT = (11..15).to_a.sample | |
def initialize | |
joe = { | |
:name => {:first => "Joe", :last=> "Smith"}, | |
:owner_quality => EXCELLENT | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Dogs | |
POOR = (0..5).to_a.sample | |
AVERAGE = (6..10).to_a.sample | |
EXCELLENT = (11..15).to_a.sample | |
def initialize | |
joe = { | |
:name => {:first => "Joe", :last=> "Smith"}, | |
:owner_quality => EXCELLENT | |
} |