My Recent Pastes (7 and counting)

Pastes by Evan Phoenix (7 and counting)

Below are the 7 most recent pasties by Evan Phoenix.

May 17, 2008
8:36PM EDT
by Evan Phoenix

module Platform
end

class Platform::OS

May 08, 2008
6:29PM EDT
by Evan Phoenix

def common_sub(*strings)
  reg = Regexp.new strings.shift.split(//).map { |i| "#{i}?" }.join("")
  c = nil
  strings.each do |s|
    next unless m = reg.match(s)

April 17, 2008
3:17AM EDT
by Evan Phoenix

class Class
  def virtual
    cls = Class.new(self)
    name = self.name
    Object.send :remove_const, name

January 05, 2008
4:55PM EDT
by Evan Phoenix

TEST = "OUT"

class A; end

class StaticScope

December 13, 2007
9:10PM EDT
by Evan Phoenix

require 'time'

git = ARGV.shift
svn = ARGV.shift

December 10, 2007
4:39PM EDT
by Evan Phoenix

  def kind_of?(cls)
    Rubinius.asm(cls) do |c|
      c.bytecode(self)
      push :self
      kind_of

October 29, 2007
11:32PM EDT
by Evan Phoenix

/*
 * Arguments passed: %rdi, %rsi, %rdx, %rcx, %r8, %r9, stack (r-to-l)
 * Return: %rax, %rdx, %xmm0, %xmm1, %st0, %st1
 *
 * Caller saved: r10-r11, xmm4-5, xmm6-15 (high 64)