I hereby claim:
- I am arunk on github.
- I am arunk (https://keybase.io/arunk) on keybase.
- I have a public key ASD9KDKbOxOunc-99tW7_vRl-vHNijGgw3djCJgXz5eYPgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Introduction | |
============ | |
First gistup using bl.ocks.org | |
/** | |
* Module dependencies. | |
*/ | |
var express = require('express') | |
, routes = require('./routes') | |
, user = require('./routes/user') | |
, http = require('http') | |
, path = require('path') | |
, passport = require('passport'), |
list = [ | |
{ | |
data: 1 | |
callback: function(res)... | |
},{ | |
data: 2 | |
callback: function(res)... | |
} | |
] |
import java.util.ArrayList #Tried this with and without quotes. | |
#Removing the above import line produces a working java .class file | |
class Test | |
def self.main(args:String[]):void | |
puts "Hello" | |
end | |
end | |
##The Test.java file produced with mirah -j |
class Test | |
def self.main(args: String[]) | |
puts args.length # signature of this method is public static java.io.PrintStream main(java.lang.String[] args) | |
#self #according to http://www.mirah.org/wiki/MirahHowto , this should change the method signature to | |
#return void. instead it changes it to - public static Test main(... | |
end | |
end |
rake aborted! | |
wrong number of arguments for constructor | |
/home/arun/Projects/aolportal/Rakefile:87:in `(root)' | |
org/jruby/RubyDir.java:212:in `glob' | |
/home/arun/Projects/aolportal/Rakefile:86:in `(root)' | |
org/jruby/RubyProc.java:268:in `call' | |
org/jruby/RubyProc.java:228:in `call' | |
/home/arun/.rvm/gems/jruby-1.6.0.RC3/gems/rake-0.8.7/lib/rake.rb:636:in `execute' | |
org/jruby/RubyArray.java:1572:in `each' | |
/home/arun/.rvm/gems/jruby-1.6.0.RC3/gems/rake-0.8.7/lib/rake.rb:631:in `execute' |
['--execute-print', '-p CODE', "Execute some Ruby code, print the result, then exit.", | |
lambda { |value| | |
puts eval(value) ##Line 2223 - previous call in stack trace. | |
exit | |
} | |
], |
$ jruby -S rake --trace -cp WEB-INF/lib/dubious.jar generate_static | |
rake aborted! | |
uninitialized constant Rake::Application::WEB | |
org/jruby/RubyModule.java:2528:in `const_missing' | |
/home/arun/bldr/jruby-1.6.0.RC2/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing' | |
(eval):1:in `standard_rake_options' | |
org/jruby/RubyKernel.java:1088:in `eval' | |
/home/arun/bldr/jruby-1.6.0.RC2/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2223:in `standard_rake_options' | |
org/jruby/RubyProc.java:268:in `call' | |
org/jruby/RubyProc.java:228:in `call' |
require 'erb' | |
java_import dubious.ActionController | |
class StaticPage < ActionController | |
def initialize( file = '') | |
@file = file | |
parse_file() | |
end |