My Recent Pastes (9 and counting)

All Pasties (over 9 and counting)

Below are summaries of the 9 most recent pasties by Magnus Holm.

December 30, 2008
8:39PM EDT
by Magnus Holm

1
2
3
4
5
$:.unshift 'lib'
require 'rubygems'
require 'camping-unabridged'
require 'sqlite3_api'
Camping.goes :Left

December 30, 2008
6:07PM EDT
by Magnus Holm

1
2
3
4
5
class CreateStuff < V 0.1
  up do
    # AR, DM or Sequel-stuff
  end
  

December 30, 2008
2:29PM EDT
by Magnus Holm

1
2
3
4
5
$:.unshift 'lib'
require 'rubygems'
require 'camping-unabridged'
require 'sqlite3_api'
Camping.goes :Cool

December 29, 2008
7:54PM EDT
by Magnus Holm

1
2
3
4
5
module Wrapper
  Resource = 1
end

module Wrapper

September 23, 2008
1:40PM EDT
by Magnus Holm

1
2
3
4
5
require 'recursive'
require 'benchmark'

# The old & slow fib
def fib(i)

July 22, 2008
6:17PM EDT
by Magnus Holm

1
2
3
4
5
def every(sec)
  loop do
    yield
    sleep sec
  end

April 14, 2008
11:39AM EDT
by Magnus Holm

1
2
3
4
5
class Memoized
  attr_reader :factorial_memo
  def initialize
    @factorial_memo = {}
  end

February 11, 2008
11:37AM EDT
by Magnus Holm

1
2
3
4
5
How to fork from GitHub to a Gitorious repository
=================================================

1. Create your Gitorious project - http://gitorious.org/projects/new

November 30, 2007
3:39PM EDT
by Magnus Holm

1
2
3
4
5
e = []
(ARGV[0]||"").split.each do |n|
  n.strip!
  e << case n 
  when "+", "-", "*", "/", "^"