Skip to content

Instantly share code, notes, and snippets.

@mjhb
Last active August 29, 2015 14:24
Show Gist options
  • Save mjhb/d753e88528b19de62044 to your computer and use it in GitHub Desktop.
Save mjhb/d753e88528b19de62044 to your computer and use it in GitHub Desktop.
Uses sbt to start Scala REPL with Algebird loaded and imported. Run 'sbt console' to start (requires sbt)
scalacOptions in (Compile, console) ++= Seq(
"-i", "init.sc"
)
libraryDependencies ++= Seq(
"com.twitter" %% "algebird-core" % "0.10.2",
"com.twitter" %% "algebird-util" % "0.10.2",
"com.twitter" %% "algebird-bijection" % "0.10.2"
)
import com.twitter.algebird._
import com.twitter.algebird.Operators._
com.twitter.algebird.Monoid
import com.twitter.algebird.QTree
import com.twitter.algebird.QTreeSemigroup
com.twitter.algebird.DecayedValue
import HyperLogLog._
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment