This file contains hidden or 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
| /* Expanded form of a bookmarklet for extracting rev=canonical OR tinyurling a page */ | |
| (function(){ | |
| var url=document.location; | |
| var links=document.getElementsByTagName('link'); | |
| var found=0; | |
| for(var i = 0, l; l = links[i]; i++) { | |
| if (l.getAttribute('rev') == 'canonical' || (/alternate short/).exec(l.getAttribute('rel'))) { | |
| found=l.getAttribute('href'); | |
| break; | |
| } |
This file contains hidden or 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
| diff -Nru passenger-2.2.0.orig/bin/passenger-install-nginx-module passenger-2.2.0/bin/passenger-install-nginx-module | |
| --- passenger-2.2.0.orig/bin/passenger-install-nginx-module 2009-04-16 10:42:11.000000000 -0700 | |
| +++ passenger-2.2.0/bin/passenger-install-nginx-module 2009-04-16 12:07:31.000000000 -0700 | |
| @@ -62,6 +62,13 @@ | |
| check_write_permission_to_passenger_root || exit(1) | |
| download_and_install = should_we_download_and_install_nginx_automatically? | |
| + if download_and_install == 3 | |
| + compile_passenger_support_files | |
| + show_passenger_configure_line(build_nginx_configure_command("/opt/nginx")) |
This file contains hidden or 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 Instance | |
| include DataMapper::Resource | |
| class Adapter < AbstractAdapter | |
| # define CRUD | |
| end | |
| repository DataMapper.setup(Adapter.new) | |
| property :id | |
| # etc, etc |
This file contains hidden or 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
| diff --git a/merb-core/lib/merb-core/bootloader.rb b/merb-core/lib/merb-core/bootloader.rb | |
| index 40037e7..7eb0e0f 100644 | |
| --- a/merb-core/lib/merb-core/bootloader.rb | |
| +++ b/merb-core/lib/merb-core/bootloader.rb | |
| @@ -628,10 +628,12 @@ class Merb::BootLoader::LoadClasses < Merb::BootLoader | |
| if Merb::Config[:fork_for_class_load] && !Merb.testing? | |
| start_transaction | |
| else | |
| - Merb.trap('INT') do | |
| + terminate_action = Proc.new do |
This file contains hidden or 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
| commit 31753b203b5a6807a3b33640ae9d056b330c757c | |
| Author: Andy Delcambre <[email protected]> | |
| Date: Wed Feb 18 16:04:56 2009 -0800 | |
| fix for bound select helper | |
| diff --git a/merb-helpers/lib/merb-helpers/form/builder.rb b/merb-helpers/lib/merb-helpers/form/builder.rb | |
| index 7485b1f..5db93d4 100644 | |
| --- a/merb-helpers/lib/merb-helpers/form/builder.rb | |
| +++ b/merb-helpers/lib/merb-helpers/form/builder.rb |
This file contains hidden or 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
| #!/usr/bin/env ruby -KU | |
| require "rubygems" | |
| require "dm-core" | |
| DataMapper.setup(:default, 'sqlite3::memory:') | |
| DataMapper.setup(:second, "sqlite3:///#{File.dirname(__FILE__)}/test.db") | |
| class Customer | |
| include DataMapper::Resource | |
| def self.default_repository_name ; :default ; end |
This file contains hidden or 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 "rubygems" | |
| require "rbench" | |
| RBench.run(500) do | |
| report("memoed") do | |
| Foo.memoed("hello") | |
| end | |
| report("unmemoed") do | |
| Foo.unmemoed("hello") | |
| end |
This file contains hidden or 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
| commit 57bcc45907480d3b1341f4d254e95bd961e479bc | |
| Author: Andy Delcambre <[email protected]> | |
| Date: Fri Dec 19 11:21:04 2008 -0800 | |
| moved #signup to Contact from Account as you are signing up a contact not an account. Refactored to handle newer dm-salesforce | |
| diff --git a/config/dependencies.rb b/config/dependencies.rb | |
| index 0ba7974..a4a158d 100644 | |
| --- a/config/dependencies.rb | |
| +++ b/config/dependencies.rb |
This file contains hidden or 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
| andy@hiro:...oss/dm-salesforce[master*]➤ bin/rake | |
| (in /Users/andy/projects/oss/dm-salesforce) | |
| /Users/andy/projects/oss/dm-salesforce/gems/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009. | |
| rm -r coverage | |
| Running auto_migrate! | |
| - should not raise errors | |
| Running auto_upgrade! | |
| - should not raise errors |
This file contains hidden or 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
| andy@hiro:...merb/merb-core➤ irb | |
| require>> require 'open-uri' | |
| => true | |
| >> ^D% andy@hiro:...merb/merb-core➤ irb | |
| >> gem 'open-uri' | |
| Gem::LoadError: Could not find RubyGem open-uri (>= 0) | |
| from /Library/Ruby/Site/1.8/rubygems.rb:642:in `report_activate_error' | |
| from /Library/Ruby/Site/1.8/rubygems.rb:144:in `activate' | |
| from /Library/Ruby/Site/1.8/rubygems.rb:49:in `gem' |