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 Pants < ApplicationRecord | |
# has `waist` and `inseam` attributes | |
end | |
class Shirt < ApplicationRecord | |
# has `chest` and `neck_size` attributes | |
end | |
class Seamstress # Domain Object | |
def self.make_outfit(args) |
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
remote_file '/tmp/Checkman.zip' do | |
source 'https://raw.githubusercontent.com/cppforlife/checkman/master/bin/Checkman.zip' | |
user node['sprout']['user'] | |
end | |
execute 'Extract Checkman.zip' do | |
cwd "#{node['sprout']['home']}/Applications" | |
user node['sprout']['user'] | |
command 'unzip /tmp/Checkman.zip' |
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
#Gemfile | |
source 'https://rubygems.org' | |
... | |
gem 'oauth' | |
gem 'omniauth-google-apps' | |
... |
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 'coderay' | |
module RspecApiDocumentation | |
class TestClient < Struct.new(:session, :options) | |
#... | |
private | |
def document_example(method, action, params) | |
#... | |
request_metadata[:response_body] = formatted_response_body(last_response.body, last_response.headers['Content-Type']) | |
#... |
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
javascript:(function(jQ){ | |
var people_lists = { | |
'Will Read': ['Roberto Ostinelli', 'Charles Hansen', 'Max Brunsfeld', 'Stephen Hopkins', 'Mark Rushakoff', 'Will Read'], | |
'Davis Frank': [], | |
'Jonathan Barnes': [], | |
'David Goudreau': [], | |
'Ryan Richard': [], | |
'Danny Burkes': [], | |
}; | |
var signed_in_manager = jQ('.welcome_message').text().replace('Welcome, ', '').trim(); |