Skip to content

Instantly share code, notes, and snippets.

@tommorris
Created September 22, 2014 10:11
Show Gist options
  • Save tommorris/7a6c5df522eca2e78001 to your computer and use it in GitHub Desktop.
Save tommorris/7a6c5df522eca2e78001 to your computer and use it in GitHub Desktop.
val src = Source.fromFile("/Users/tom/google_export.txt")
val data = src.getLines().map(_.split("\t")).toList
val ie_pre_9 = data.filter(_(0).toFloat < 9)
val ie_pre_9_shit_screens = ie_pre_9.filter(_(1).split("x")(0).toInt < 1024)
ie_pre_9_shit_screens.foldLeft(0)((x: Int, y: Array[String]) => x + y(2).toInt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment