My Recent Pastes (12 and counting)
Pastes by Magnus Holm (12 and counting)
Below are the 12 most recent pasties by Magnus Holm.
July 22, 2010
7:46AM EDT
by Magnus Holm
View all 23 lines
module Helper B = 1 end module CompileSite
June 02, 2010
11:06AM EDT
by Magnus Holm
View all 11 lines
17:03 Judofyr: but wouldn't you often need several mathematical operations and also conditionals/branches? 17:03 Judofyr: you *could* end up writing a turing-complete programming language inside Paws, y'know :P 17:03 ec: perhaps. If you need conditionals/branches, you’re probably fucked… I
December 30, 2008
8:39PM EDT
by Magnus Holm
View all 73 lines
$:.unshift 'lib' require 'rubygems' require 'camping-unabridged' require 'sqlite3_api' Camping.goes :Left
December 30, 2008
6:07PM EDT
by Magnus Holm
View all 29 lines
class CreateStuff < V 0.1 up do # AR, DM or Sequel-stuff end
December 30, 2008
2:29PM EDT
by Magnus Holm
View all 54 lines
$:.unshift 'lib' require 'rubygems' require 'camping-unabridged' require 'sqlite3_api' Camping.goes :Cool
December 29, 2008
7:54PM EDT
by Magnus Holm
View all 13 lines
module Wrapper Resource = 1 end module Wrapper
September 23, 2008
1:40PM EDT
by Magnus Holm
View all 56 lines
require 'recursive' require 'benchmark' # The old & slow fib def fib(i)
April 14, 2008
11:39AM EDT
by Magnus Holm
View all 21 lines
class Memoized attr_reader :factorial_memo def initialize @factorial_memo = {} end
February 11, 2008
11:37AM EDT
by Magnus Holm
View all 27 lines
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
View all 17 lines
e = [] (ARGV[0]||"").split.each do |n| n.strip! e << case n when "+", "-", "*", "/", "^"
