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
#Add to GEMFILE | |
gem 'capistrano', '~> 3.11' | |
gem 'capistrano-rails', '~> 1.4' | |
gem 'capistrano-passenger', '~> 0.2.0' | |
gem 'capistrano-rbenv', '~> 2.1', '>= 2.1.4' | |
#Then run | |
bundle | |
cap install STAGES=production |
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 Sugar | |
def initialize(ingredients) | |
@ingredient = ingredients | |
end | |
def cost | |
@ingredient.cost + 1 | |
end | |
end |
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
def test(input) | |
@input ||= input | |
puts "TEST #{@input}" | |
end | |
alice = "im alice" | |
veronica = "im veronica" | |
thr = [] | |
thr << Thread.new { test(alice) } |
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
.git | |
.gitignore | |
/doc | |
.yardoc | |
coverage | |
jsdoc | |
/tmp | |
/log | |
Dockerfile | |
Dockerfile.prod |
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 'bundler/setup' | |
require 'dino' | |
class Ardui | |
def initialize | |
@dependent = {} | |
end | |
def board | |
Dino::Board.new(Dino::TxRx::Serial.new) |
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
module Features | |
def sign_in(user) | |
visit new_user_session_path | |
fill_in "Email", with: user.email | |
fill_in "Password", with: user.password | |
click_on "Log in" | |
end | |
end | |