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
elevators: | |
speed: 1 | |
number: 2 | |
floors: 9 | |
requests: | |
- arrive_at_elevator_time: 1 | |
starting_floor: 3 | |
destination_floor: 1 | |
- arrive_at_elevator_time: 2 | |
starting_floor: 9 |
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
SQL (0.0ms) SELECT name | |
FROM sqlite_master | |
WHERE type = 'table' AND NOT name = 'sqlite_sequence' | |
SQL (0.0ms) select sqlite_version(*) | |
SQL (0.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL | |
) | |
SQL (0.0ms) PRAGMA index_list("schema_migrations") | |
SQL (15.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrat | |
ions" ("version") |
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' | |
Bundler.setup | |
Bundler.require(:default) | |
require_relative '../lib/munin-graph' # This is in ../lib | |
require 'munin_graph_server' | |
run Sinatra::Application |
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
........FFFF.FFF. | |
Failures: | |
1) Capybara::Session with selenium driver it should behave like session it should behave like attach_file#attach_file with normal form should set a file path by id | |
Failure/Error: extract_results(@session)['image'].should == File.basename(__FILE__) | |
expected: "attach_file_spec.rb" | |
got: "" (using ==) | |
Shared Example Group: "attach_file" called from ./lib/capybara/spec/session.rb:46 | |
# ./lib/capybara/spec/session/attach_file_spec.rb:12:in `block (4 levels) in <top (required)>' |
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
# I created a new directory and with capistrano 2.6.0 did `capify .`, then defined this task in config/deploy.rb: | |
task :capistrano_bug do | |
set :something, current_release | |
end | |
# When I run cap capistrano_bug --dry-run, this is what I get: | |
$ cap capistrano_bug --dry-run |
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
Contributing to Open Source | |
=========================== | |
First Rule: You can find the time | |
- It doesn't take much | |
- Weekends are good | |
- Find what other time you're wasting | |
- Try something that's _not_ your day job | |
Second Rule: What to contribute to? |
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
[GEM_ROOT]/gems/oauth-0.4.5/lib/oauth/consumer.rb:181:in `request' | |
[GEM_ROOT]/gems/oauth-0.4.5/lib/oauth/consumer.rb:197:in `token_request' | |
[GEM_ROOT]/gems/oauth-0.4.5/lib/oauth/tokens/request_token.rb:18:in `get_access_token' | |
[GEM_ROOT]/gems/linkedin-0.3.1/lib/linked_in/helpers/authorization.rb:29:in `authorize_from_request' | |
app/models/linked_in_client.rb:39:in `authorize_access' |
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
# Ok cool | |
<span class="fn"><a href="/users/hhhh" class="url">hhhh (<span class="nickname">hhhh</span>)</a></span> |
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
1. Smile | |
2. No meat 1 day/week | |
3. Say Thank You | |
4. Work from home/carpool/take public transportation sometimes | |
5. See some trash, pick it up (literally and metaphorically) | |
6. Learn hacking in the physical world (buy vs build) | |
7. Vote | |
8. | |
9. | |
10. Share these ideas and others like them |
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
# Try this (minispec): | |
describe "not logged in" do | |
[:index, :new].each do |method| | |
it "should redirect to login on #{method}" do | |
get method | |
assert_redirect_to login_url | |
end | |
end | |
end |