Skip to content

Instantly share code, notes, and snippets.

Avatar

Geir Henning Pettersen geipette

  • Mercell Holding AS
  • Norway
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am geipette on github.
  • I am geipette (https://keybase.io/geipette) on keybase.
  • I have a public key whose fingerprint is 2A2E 55A9 207E 3396 212B 5E20 94BD 90C0 DB04 310D

To claim this, I am signing this object:

View alice.txt
Alice's Adventures in Wonderland
ALICE'S ADVENTURES IN WONDERLAND
Lewis Carroll
THE MILLENNIUM FULCRUM EDITION 3.0
View mimic.rb
#encoding: UTF-8
class Mimic
def initialize
@wordmap = Hash.new {|hash, key| hash[key]=[]}
end
def process(input)
words = input.split.collect do |e|
e #.downcase.gsub(/[^a-zA-ZæøåÆØÅ]/ , '')