I hereby claim:
- I am scashin133 on github.
- I am scashin133 (https://keybase.io/scashin133) on keybase.
- I have a public key whose fingerprint is 8BED C94A 8EFF 24EF 40BD 62DA 3729 D29C B4F2 0318
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| Rubinius Crash Report #rbxcrashreport | |
| Error: signal SIGILL | |
| [[Backtrace]] | |
| 0 rbx 0x0000000100024871 _ZN8rubiniusL12segv_handlerEi + 241 | |
| 1 libSystem.B.dylib 0x00007fff83c4e1ba _sigtramp + 26 | |
| 2 ??? 0x14e0700000000000 0x0 + 1504325420844056576 | |
| 3 rbx 0x0000000100108ead _ZN8rubinius11SharedState13new_thread_idEPNS_13ManagedThreadE + 221 | |
| 4 rbx 0x0000000100108ef6 _ZN8rubinius11SharedState6new_vmEv + 38 |
| Rubinius Crash Report #rbxcrashreport | |
| [[Exception]] | |
| A toplevel exception occurred | |
| unable to find Rubinius command 'help' (LoadError) | |
| Backtrace: | |
| Rubinius::Loader#script at kernel/loader.rb:645 | |
| Rubinius::Loader#main at kernel/loader.rb:808 |
| // Java example | |
| import java.io.BufferedReader; | |
| import java.io.OutputStreamWriter; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import java.net.Authenticator; | |
| import java.net.PasswordAuthentication; | |
| import java.net.URL; | |
| import java.net.HttpURLConnection; |
| require 'rubygems' | |
| require 'rest_client' | |
| require 'json' | |
| require 'logger' | |
| require 'pp' | |
| class VhackDemo | |
| def self.request(method, path, request_params) | |
| RestClient.log = Logger.new(STDOUT) | |
| url = ['https://', 'demo.socialcast.com', path].join |
| @i = 0 | |
| a = "" | |
| def ao | |
| puts @i | |
| end |
| ActiveRecord::Base.logger = Logger.new(STDOUT) | |
| reload! |
| require 'rubygems' | |
| require 'bundler' | |
| ENV['BUNDLE_GEMFILE']="/path/to/Gemfile" | |
| Bundler.require |
| # Linux | |
| openssl rand -base64 1024 -out /dev/stdout | sed -r 's/[^a-zA-Z0-9]//g' | tr -d '\n' | |
| # Mac OSX | |
| openssl rand -base64 1024 -out /dev/stdout | sed 's/[^a-zA-Z0-9]//g' | tr -d '\n' |
| def foo | |
| f = Proc.new { return "return from foo from inside proc" } | |
| f.call # control leaves foo here | |
| return "return from foo" | |
| end | |
| def bar | |
| f = lambda { return "return from lambda" } | |
| f.call # control does not leave bar here | |
| return "return from bar" |