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
def import | |
puts "a" | |
end | |
require 'java' | |
import java.lang.System | |
puts "Worked!" |
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
def import(nothing) | |
end | |
class DummyObject < Object | |
def method_missing(meth) | |
return self | |
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
# Originally from | |
# http://github.com/i2av/sinatra-flash/blob/7bb1f5e0a1093d4f114bbe8074bb1a7792bc5ab1/app.rb | |
# but heavily modified | |
module Sinatra | |
module Flash | |
module RedirectHelper | |
def redirect(uri, *args) |
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
vishnugopal ~/Applications/MacPorts $ sudo port list installed | |
Password: | |
expat @2.0.1 textproc/expat | |
gettext @0.17 devel/gettext | |
gperf @3.0.4 devel/gperf | |
libiconv @1.13 textproc/libiconv | |
ncurses @5.7 devel/ncurses | |
ncursesw @5.7 devel/ncursesw | |
openssl @0.9.8k devel/openssl | |
pkgconfig @0.23 devel/pkgconfig |
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
>> block = lambda { |a| a + 1 } | |
=> #<Proc:0x000000010116aa88@(irb):11> | |
>> hmm(*array, &block) | |
:a | |
[:b, :c] |
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
>> Kernel.methods - Object.methods | |
=> ["exit!", "chomp!", "print", "fail", "binding", "split", "Array", "readlines", "format", "chop", "iterator?", "catch", "trap", "getc", "putc", "caller", "proc", "chomp", "block_given?", "throw", "p", "sub!", "loop", "trace_var", "syscall", "exec", "Integer", "callcc", "puts", "exit", "load", "lambda", "srand", "global_variables", "gsub!", "untrace_var", "open", "`", "Float", "method_missing", "system", "gets", "sub", "abort", "require", "rand", "test", "warn", "eval", "local_variables", "chop!", "scan", "raise", "set_trace_func", "printf", "fork", "sleep", "select", "String", "at_exit", "readline", "sprintf", "gsub", "__method__"] | |
>> module Kernel | |
>> def iloveyou | |
>> puts "I Love you" | |
>> end | |
>> end | |
=> nil | |
>> iloveyou | |
I Love you |
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
vishnugopal@Elena:Code/working/macruby % macrubyc -o ./hello hello.rb --static | |
/bin/sh: llvm-config: command not found | |
Error when executing `llvm-config --ldflags --libs core jit nativecodegen interpreter bitwriter' | |
(Interestingly, without --static, it works!) |
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
vishnugopal@Elena:Code/working/macruby % macrubyc world.rb | |
vishnugopal@Elena:Code/working/macruby % macrubyc hello.rb | |
vishnugopal@Elena:Code/working/macruby % ls | |
a.out* hello.o hello.rb world.o world.rb | |
vishnugopal@Elena:Code/working/macruby % macrubyc | |
vishnugopal@Elena:Code/working/macruby % ./a.out | |
no such file to load -- world (LoadError) | |
vishnugopal@Elena:Code/working/macruby % macrubyc hello.o world.o | |
/var/folders/nX/nXnuXaYeGIOkQo6WIXrqMU+++TI/-Tmp-/main.mm:9: error: expected unqualified-id before ‘void’ | |
/var/folders/nX/nXnuXaYeGIOkQo6WIXrqMU+++TI/-Tmp-/main.mm:9: error: expected `)' before ‘void’ |
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 'java' | |
import javax.ws.rs.Path | |
import javax.ws.rs.GET | |
import javax.ws.rs.Produces | |
package com.headius.demo.jersey | |
annotation Path("/helloworld") | |
class HelloWorld |
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
A. Lee Martinez - A Nameless Witch.epub | |
Al Steiner - Greenies.epub | |
Andrzej Sapkowski - The Last Wish.epub | |
Anthony Horowitz - Gatekeepers 1 - Raven's Gate.epub | |
Ben Bova - Orion.epub | |
C. Dale Brittain - A Bad Spell in Yurt.epub | |
C. Dale Brittain - Daughter of Magic.epub | |
C. Dale Brittain - Mage Quest.epub | |
C. Dale Brittain - The Witch and the Cathedral.epub | |
C. Dale Brittain - The Wood Nymph and the Cranky Saint.epub |
OlderNewer