Created
December 5, 2008 01:10
-
-
Save adamwiggins/32188 to your computer and use it in GitHub Desktop.
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
| $ bin/droid run | |
| [Thu Dec 04 17:07:40 -0800 2008, "hello", "{\"event_hash\":\"3832e64375d7918581c45da9bd2f7ec9\",\"xyz\":123}"] | |
| {"event_hash"=>"3832e64375d7918581c45da9bd2f7ec9", "xyz"=>123} |
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 | |
| require 'rubygems' | |
| require File.dirname(__FILE__) + '/../config/boot' | |
| require File.dirname(__FILE__) + '/../config/environment' | |
| require 'lizzy_cloud' | |
| Lizzy.start do | |
| Lizzy.listen4('hello') do |o, info, req| | |
| puts req.inspect | |
| end | |
| 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
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require File.dirname(__FILE__) + '/../config/boot' | |
| require File.dirname(__FILE__) + '/../config/environment' | |
| require 'lizzy_cloud' | |
| Lizzy.start do | |
| Lizzy.publish('hello', :xyz => 123) | |
| Lizzy.stop_safe | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment