Skip to content

Instantly share code, notes, and snippets.

Lars Marius Garshol larsga

Block or report user

Report or block larsga

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am larsga on github.
  • I am larsga ( on keybase.
  • I have a public key ASD7BkvYLDinqT6Z63GwiXZy1KuRGxBNRuNBp1KMly98cQo

To claim this, I am signing this object:

View gist:5e6abfbdc14ccde9e29d509e20f29d93
import java.util.*;
// read text file (plain text, no formatting)
// output how many times each word occurs in the text
// words consist only of A-Z/a-z, nothing else
// 'hello, Hello, jean-paul' => 'hello: 2 jean: 1 paul: 1'
public class Counter {
larsga /
Created Mar 28, 2012
Anagram code kata
def make_key(str):
key = list(str)
return "".join(key)
classes = {}
for line in open("wordlist.txt"):
word = line.strip().lower()
key = make_key(word)
You can’t perform that action at this time.