Skip to content

Instantly share code, notes, and snippets.

View Mikoangelo's full-sized avatar

Mikael Høilund Mikoangelo

  • Meta.io
  • Denmark
View GitHub Profile
@Mikoangelo
Mikoangelo / hello.js
Created November 25, 2009 19:27 — forked from judofyr/hello.js
alert("Hello World!")
i686-apple-darwin9-g++-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490)
A()
~B()
~A()
B()
~B()
~A()
@Mikoangelo
Mikoangelo / Results
Created March 10, 2009 19:57 — forked from reinh/comprehend.rb
Now featuring results
Rehearsal ------------------------------------------------
map, compact 1.090000 0.040000 1.130000 ( 2.573331)
inject 19.150000 0.370000 19.520000 ( 34.193527)
accumulator 11.760000 0.220000 11.980000 ( 16.703419)
map, reject 1.740000 0.040000 1.780000 ( 2.365760)
-------------------------------------- total: 34.410000sec
user system total real
map, compact 1.080000 0.030000 1.110000 ( 1.440510)
inject 12.800000 0.230000 13.030000 ( 17.273436)
class String
ACCENTS = {
"a" => %w{ ã á â },
"e" => %w{ é ê },
"i" => %w{ í },
"o" => %w{ õ ó ô },
"u" => %w{ ú },
"c" => %w{ ç }
}
def to_ascii!