Skip to content

Instantly share code, notes, and snippets.

@baroquebobcat
baroquebobcat / office_hours.md
Created July 22, 2012 20:17
Mirah Office Hours: July 22nd

Mirah Office Hours: July 22nd

  • Update bat file to do something nicer.

  • New Release

    • update versions
    • generate artifacts (gem, zip, jars)
    • test artifacts (gem, zip, mvn clean install, jars)
    • push artifacts
class A
def initialize x
puts x
end
end
class B < A
def initialize y, z
super
end
@baroquebobcat
baroquebobcat / office_hours.md
Created July 15, 2012 21:35
Mirah Office Hours: July 15th 2012
@baroquebobcat
baroquebobcat / notes.md
Created June 24, 2012 19:30
Mirah Office Hours: June 24th 2012
@baroquebobcat
baroquebobcat / slides.md
Created May 22, 2012 19:39
jrubyconf Mirah lightning talk
<script>$(function(){$.deck('disableScale')})</script>

!SLIDE

Mirah

Three things

!SLIDE

  • newast
@baroquebobcat
baroquebobcat / scoping_closures.mirah
Created May 14, 2012 22:49
Mirah: some thoughts on this & self in closures
# Some of my thoughts
#
# this one's easy
addListener do |event|
self # < outer scope self
end
# but what about
addListener do
def respond event
@baroquebobcat
baroquebobcat / 185
Created May 9, 2012 23:51
Blog post notes
$ mirahc --java Macros.mirah
Parsing...
Macros.mirah
Inferring types...
Compiling...
Macros.mirah
Macros.mirah:15: undefined method `block' for nil:NilClass
attr_reader :foo
^^^^^^^^^^^^^^^^^^
Mirah::InternalCompilerError: undefined method `block' for nil:NilClass
@baroquebobcat
baroquebobcat / notes.md
Created May 6, 2012 20:25
Mirah Office Hours Notes: Sun 05/06
@baroquebobcat
baroquebobcat / mirah_repl.rb
Created May 1, 2012 03:53
Mirah REPL -- hacked together
#
# Mirah REPL -- hacked to bits
#
# assuming your ruby is jruby,
# $ gem install mirah
# $ ruby -rubygems repl.rb
# m> class Foo
# m> def bar
# m> 12
# m> end
#imports go here
class TimerContainer
def initialize
@list = ArrayList.new
end
def add_task timer:TimerTask
@list.add timer
end
end