Public Gists by adamsanderson

gist: 118748 little rails filter to trac...
Gravatar
Wed May 27 09:59:32 -0700 2009
1
2
3
around_filter do |controller, action|
  delta = Hash.new{|h,k| h[k] = 0}
  ObjectSpace.each_object{|o| delta[o.class] -= 1}
gist: 113223 This does not do what I exp...
Gravatar
Sun May 17 16:35:06 -0700 2009
1
2
3
# throw catch test
class Thingy
  def loop
gist: 99612 From: http://www.jetbrains....
Gravatar
Tue Apr 21 22:48:14 -0700 2009
1
2
3
#! /usr/bin/env jruby
include Java
 
gist: 66215 Quick and dirty dot file fo...
Gravatar
Tue Feb 17 21:45:51 -0800 2009
1
2
3
# Quick and dirty dot file for ActiveRecord models
 
namespace :dot do
Gravatar
Sun Sep 07 08:24:08 -0700 2008
1
2
3
CmdUtils.CreateCommand({
    name: "bus-schedule",
    takes: {"route": noun_arb_text},
Gravatar
Wed Aug 13 21:07:50 -0700 2008
1
2
3
require 'jruby'
import org.jruby.ast.Node
import org.jruby.ast.DefnNode
Gravatar
Wed Aug 13 11:07:47 -0700 2008
1
2
3
#!/usr/local/bin/ruby -ws
# Quick Hack to show which methods are not explicitly called within a class.
# This is only with regard to the class itself.
Gravatar
Wed Jul 23 09:41:35 -0700 2008
1
2
3
# From PragDave:
# http://pragdave.blogs.pragprog.com/pragdave/2008/04/babydoc.html