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
| fl=20f5 | |
| h=cloudflare.com | |
| ip=93.193.206.191 | |
| ts=1392069350.665 | |
| visit_scheme=http | |
| uag=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36 | |
| colo=AMS | |
| spdy=off | |
| 0 |
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 'morpher' | |
| extend Morpher::NodeHelpers | |
| class Address | |
| include Anima.new(:street) | |
| end | |
| class Person | |
| include Anima.new(:address) | |
| 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
| module Morpher | |
| class Hybrid | |
| include Evaluator::Unary | |
| def call(input) | |
| Evaluation.success( | |
| :input => input, | |
| :output => node.call(input) | |
| ) | |
| rescue Morpher::TransformError |
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
| mbj@mbj ~/devel/unparser (master*) % bundle exec ruby-parse return-a.rb return-b.rb | |
| Using Parser::Ruby21 to parse 2 files. | |
| (block | |
| (return | |
| (send nil :foo | |
| (send nil :arg))) | |
| (args | |
| (arg :bar)) nil) | |
| (return | |
| (block |
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
| mbj@mbj ~/devel/mutant (master) % bundle exec ruby-parse -e 'a.foo, a[1], b[] = b, *c' <<< | |
| (masgn | |
| (mlhs | |
| (send | |
| (send nil :a) :foo=) | |
| (send | |
| (send nil :a) :[]= | |
| (int 1)) | |
| (send | |
| (send nil :b) :[]=)) |
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
| mbj@mbj ~/devel/mutant (master*) % chruby jruby | |
| mbj@mbj ~/devel/mutant (master*) % irb test.rb | |
| test.rb(main):001:0> RUBY_ENGINE | |
| => "jruby" | |
| test.rb(main):002:0> RUBY_VERSION | |
| => "1.9.3" | |
| test.rb(main):003:0> 0.0 == -0.0 | |
| => true | |
| test.rb(main):004:0> -0.0 == 0.0 | |
| => true |
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
| Anima::Builder#define_anima_method:/home/mbj/devel/anima/lib/anima/builder.rb:98 | |
| evil:Anima::Builder#define_anima_method:/home/mbj/devel/anima/lib/anima/builder.rb:98:3ce76 | |
| @@ -1,8 +1,8 @@ | |
| def define_anima_method | |
| - descendant_exec(@anima) do |anima| | |
| + descendant_exec(@anima) do |s5cddc71c5388531691ae| | |
| define_singleton_method(:anima) do | |
| anima | |
| 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
| require 'ducktrap' | |
| # Very simple ducktrap without any real world use | |
| # | |
| # Not transforming. | |
| # | |
| string = Ducktrap.build do | |
| primitive(String) | |
| 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
| class Foo | |
| def self.bar | |
| :baz | |
| end | |
| end | |
| Foo.bar # => :baz, public | |
| class Foo | |
| class << self |
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
| mbj@mbj ~/devel/unparser (master*) % gem push unparser-0.0.18.gem <<< | |
| Pushing gem to https://rubygems.org... | |
| <html> | |
| <head><title>500 Internal Server Error</title></head> | |
| <body bgcolor="white"> | |
| <center><h1>500 Internal Server Error</h1></center> | |
| <hr><center>nginx</center> | |
| </body> | |
| </html> |