All links are amazon affiliate. I'm recommending you books, it's how I pay to buy my own. ;)
| %li.search-business | |
| = link_to(searches_path(:t => "1")) do | |
| %i.icon-star | |
| Business |
| #!/usr/bin/env ruby | |
| def usage | |
| puts "./pair [name]: pair two people" | |
| puts "./pair : switch to just steve" | |
| exit | |
| end | |
| def set_config(name, email) | |
| `git config user.name "#{name}"` |
| run "rm public/index.html" | |
| run "sed '3d' Gemfile > Gemfile" # remove rails line | |
| gem "rails", :github => "rails/rails", :branch => "master" | |
| # git :init | |
| # git :add => "." | |
| # git :commit => %Q{ -m 'Initial commit' } |
since they took it down, from http://webcache.googleusercontent.com/search?q=cache%3Ahttp%3A%2F%2F2013.britruby.com%2F&rlz=1C1CHFA_enUS484US486&oq=cache%3Ahttp%3A%2F%2F2013.britruby.com%2F&aqs=chrome.0.57j58j61.1127&sugexp=chrome,mod=15&sourceid=chrome&ie=UTF-8
The last 48hrs has been a whirlwind of discussions and speculations as to why I decided to retract BritRuby. It seems that the point has been missed and I’d like to take the opportunity to put the record straight.
At BritRuby our mission statement was clear. We wanted to run a conference like no other before on British soil to enhance and inspire developers within the Ruby community. We wanted to have fun, exchange ideas, boost jobs, network and we hoped to inspire students to join the industry. So what went wrong?
Firstly, I would like to categorically state that none of our sponsors had officially pulled out of the conference. Running a conference of this magnitude takes time, effort and money.
| iff --git a/actionpack/lib/action_dispatch/middleware/remote_ip.rb b/actionpack/lib/action_dispatch/middleware/remote_ip.rb | |
| index 5abf8f2..8d986e8 100644 | |
| --- a/actionpack/lib/action_dispatch/middleware/remote_ip.rb | |
| +++ b/actionpack/lib/action_dispatch/middleware/remote_ip.rb | |
| @@ -95,7 +95,7 @@ module ActionDispatch | |
| client_ips.first | |
| else | |
| # If there is no client ip we can return first valid proxy ip from REMOTE_ADDR | |
| - remote_addrs.find { |ip| valid_ip? ip } | |
| + [remote_addrs, client_ip, forwarded_ip].flatten.find { |ip| valid_ip? ip } |
| #!/usr/bin/env ruby | |
| def usage | |
| puts "./pair [name]: pair two people" | |
| puts "./pair : switch to just steve" | |
| exit | |
| end | |
| def set_config(name, email) | |
| `git config user.name "#{name}"` |
| def print_numbers | |
| @file.each do |line| | |
| number = clean_number([:homephone]) | |
| puts number | |
| end | |
| end | |
| def clean_number(original) | |
| number = number.delete(".").delete("-").delete(" ").delete("(").delete(")") | |
| #There must be a shorter way to deal with this..? |
| STDIN.stub :getch, "a" do | |
| STDOUT.stub :print, nil do | |
| c = STDIN.getch | |
| print "c is #{c}" | |
| STDOUT.print c | |
| end | |
| end |
| # ugly, but works | |
| def test_eval_display_node | |
| mock = MiniTest::Mock.new.expect(:print, nil, ["H"]) | |
| redefine_constant("STDOUT", mock) do | |
| ast = 72.times.collect { Mojikun::ThumbsUpNode.new } | |
| ast << Mojikun::DisplayNode.new |