My Recent Pastes (15 and counting)
Pastes by Mikael Høilund (15 and counting)
Below are the 15 most recent pasties by Mikael Høilund.
October 17, 2008
6:37PM EDT
by Mikael Høilund
View all 33 lines
\documentclass{letter} % Unicode support \usepackage{ucs} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc}
October 17, 2008
2:59PM EDT
by Mikael Høilund
View all 15 lines
LOGO \hfill \parbox[t]{10em}{ \large \textsc{Company}
October 14, 2008
6:16PM EDT
by Mikael Høilund
View all 35 lines
class TablesController attr_accessor :view def foo sender end
October 14, 2008
5:42PM EDT
by Mikael Høilund
View all 40 lines
class TablesController < NSObjectController # What should this inherit from? I've tried nothing, NSViewController, NSWindowController, FirstResponder attr_accessor :view # This isn't detected in IB # Neither is this def foo sender
August 31, 2008
10:46PM EDT
by Mikael Høilund
View all 46 lines
# Example script to showcase editor themes. module Awesome class Yarra < Array def map! options = {}, &block
August 31, 2008
10:46PM EDT
by Mikael Høilund
View all 46 lines
# Example script to showcase editor themes. module Awesome class Yarra < Array def map! options = {}, &block
August 31, 2008
9:31PM EDT
by Mikael Høilund
View all 45 lines
# Example script to showcase editor themes. module Awesome class Yarra < Array def map! options = {}, &block
August 31, 2008
9:25PM EDT
by Mikael Høilund
View all 45 lines
# Example script to showcase editor themes. module Awesome class Yarra < Array def map! options = {}, &block
August 31, 2008
8:49PM EDT
by Mikael Høilund
View all 45 lines
# Example script to showcase editor themes. module Awesome class Yarra < Array def map! options = {}, &block
August 31, 2008
8:48PM EDT
by Mikael Høilund
View all 45 lines
# Example script to showcase editor themes. module Awesome class Yarra < Array def map! options = {}, &block
August 25, 2008
10:43AM EDT
by Mikael Høilund
View all 51 lines
class Life attr_reader :birth, :death def initialize age = 0 @birth = Time.now - age
July 25, 2008
4:54PM EDT
by Mikael Høilund
View all 45 lines
## Result [plain_text] user system total real yield 18.300000 0.120000 18.420000 ( 19.408501) block 41.890000 0.320000 42.210000 ( 44.572319)
July 15, 2008
11:52PM EDT
by Mikael Høilund
View all 26 lines
require 'rubygems' require 'ncurses' # Lessee... Ncurses.initscr
July 02, 2008
7:01PM EDT
by Mikael Høilund
View all 20 lines
require 'benchmark' Benchmark.bm do |x| t = 5000000 x.report "throw" do
November 06, 2007
4:31PM EDT
by Mikael Høilund
View all 6 lines
def parse_competence_level(competence_level)
level, dummy, sublevel = competence_level.scan(/([^_]+)(_(\d+))?/).first
sublevel = sublevel.to_i if sublevel
[level, sublevel]
