I hereby claim:
- I am ohammersmith on github.
- I am ohammersmith (https://keybase.io/ohammersmith) on keybase.
- I have a public key whose fingerprint is D975 8599 5261 E48D 95C0 C73B 4684 93C1 DA40 F3AC
To claim this, I am signing this object:
defmodule User do | |
defstruct [:age] | |
def fetch(term, key) do | |
Map.fetch(term, key) | |
end | |
def get(term, key, default) do | |
Map.get(term, key, default) | |
end |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
I hereby claim:
To claim this, I am signing this object:
Index: test/unit/integrations/helpers/amazon_paynow_helper_test.rb | |
=================================================================== | |
--- test/unit/integrations/helpers/amazon_paynow_helper_test.rb (revision 0) | |
+++ test/unit/integrations/helpers/amazon_paynow_helper_test.rb (revision 0) | |
@@ -0,0 +1,31 @@ | |
+require File.dirname(__FILE__) + '/../../../test_helper' | |
+ | |
+class AmazonPaynowHelperTest < Test::Unit::TestCase | |
+ include ActiveMerchant::Billing::Integrations | |
+ |
~ Params: {"submit"=>"Verify", "action"=>"start", "controller"=>"chef_server_slice/openid_consumer", "openid_identifier"=>"https://172.18.6.101/openid/server/node/edge4_in_rprj_com"} | |
~ WARNING: making https request to https://172.18.6.101/openid/server/node/edge4_in_rprj_com without verifying server certificate; no CA path was specified. | |
~ Discovery failed for https://172.18.6.101/openid/server/node/edge4_in_rprj_com: Failed to fetch identity URL https://172.18.6.101/openid/server/node/edge4_in_rprj_com : Error connecting to SSL URL https://172.18.6.101/openid/server/node/edge4_in_rprj_com: hostname does not match - (Merb::ControllerExceptions::BadRequest) | |
/usr/lib/ruby/gems/1.8/gems/chef-server-slice-0.7.4/app/controllers/openid_consumer.rb:41:in `start' | |
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.11/lib/merb-core/controller/abstract_controller.rb:315:in `send' | |
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.11/lib/merb-core/controller/abstract_controller.rb:315:in `_call_action' | |
/usr/lib/ruby/gems/1.8/gems/merb- |
require 'rubygems' | |
require 'wirble' | |
# Wirble.init | |
# Wirble.colorize | |
require 'hirb' | |
Hirb.enable | |
# extend Hirb::Console |
#!/opt/local/bin/ruby | |
require 'rubygems' | |
gem 'datamapper' | |
require 'datamapper' | |
DataMapper::Logger.new(STDOUT, :debug) # :off, :fatal, :error, :warn, :info, :debug | |
DataMapper.setup(:default, 'mysql://root:mXtHWdZsZuqh@localhost/dm_core_test' ) |
<%= branch = `git symbolic-ref HEAD`.gsub('refs/heads/', '').chomp.gsub('/', '_') %> | |
login: &login | |
adapter: mysql | |
username: root | |
password: xxxxxxxxxxxxxx | |
host: localhost | |
socket: /opt/local/var/run/mysql5/mysqld.sock | |
development: |
class FoosController | |
def new | |
@foo = Foo.new | |
@foo.attribute = "asdf" | |
@foo.bars.build(:name => "blah") | |
@default_questions = {} |
complete -C "/usr/bin/gemedit --complete" gemedit | |
alias wd='ruby -S watchdog.rb' | |
alias dbm="rake db:migrate:reset && rake db:test:prepare" | |
alias cons="script/console" | |
alias gen="script/generate" | |
alias dest="script/destroy" | |
alias plug="script/plugin" | |
alias ss="test -d ./script && script/server || serve" | |
alias log="tail -f log/*.log" |