Skip to content

Instantly share code, notes, and snippets.

View aquateen's full-sized avatar
😩

Chris Johnson aquateen

😩
View GitHub Profile
@aquateen
aquateen / keybase.md
Created January 25, 2017 01:26
Authenticating my github account with keybase.

Keybase proof

I hereby claim:

  • I am aquateen on github.
  • I am cgj (https://keybase.io/cgj) on keybase.
  • I have a public key whose fingerprint is 5F4A CBD9 4208 A2B6 DF62 94E7 209F 82E3 5881 BAAB

To claim this, I am signing this object:

@aquateen
aquateen / state_pattern.rb
Created June 26, 2015 15:47
Example of State pattern
# gem install state_pattern
require 'state_pattern'
class Stop < StatePattern::State
def next
sleep 4
transition_to(Go)
end
def color
@aquateen
aquateen / savon_demo.rb
Created February 25, 2015 21:23
Demo from Savon Eng Talk
require "savon"
require "pry"
client = Savon.client(:wsdl => "http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL")
operations = client.operations
request = client.operation(:get_city_weather_by_zip).build(:message => { "ZIP" => "90028" })
response = client.operation(:get_city_weather_by_zip).call(:message => { "ZIP" => "90028" })
binding.pry