Scala useful nuggets and stuff