Misc Scala code for things I don't feel deserve a project