I hereby claim:
- I am chrishunt on github.
- I am chrishunt (https://keybase.io/chrishunt) on keybase.
- I have a public key whose fingerprint is 0B2A E5EE C824 BA32 DD5F 90E4 1C73 302A CA43 2EBB
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class Basket | |
attr_reader :contents | |
def initialize | |
@contents = [] | |
end | |
end |
class Array | |
def [](index) | |
fetch(index) | |
end | |
end |
git for-each-ref --format='%(refname:short) <- %(upstream:short)' refs/heads |
Running 100000 iterations... | |
each: 6.872149 | |
inject: 6.868875 | |
map: 0.093785 |
describe 'rspec' do | |
let(:sentance) { 'hello' } | |
it "returns 'hello'" do | |
sentance.should == 'hello' | |
end |
Note: Remove example deps from the local mvn cache so they need to be installed for the demo
$ rm -r ~/.m2/repository/{com/steelcity, jruby}
First, create your amazing Ruby library that you'd like to use in Clojure. We must require 'java'
and we must specify a java package because the default package cannot be imported into our Clojure project.
def sleep_sort(*nums) | |
sorted = [] | |
nums.map do |n| | |
Thread.new { sleep n; sorted << n } | |
end.map(&:join) | |
sorted | |
end |