This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scalaVersion := "2.10.2" | |
resolvers += "Sonatype OSS Snapshots" at | |
"https://oss.sonatype.org/content/repositories/snapshots" | |
libraryDependencies += "com.github.axel22" %% "scalameter" % "0.4-M2" | |
testFrameworks += new TestFramework("org.scalameter.ScalaMeterFramework") | |
testFrameworks += new TestFramework( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package utils | |
import java.nio.ByteBuffer | |
import cats.data.Xor | |
import io.circe.Json | |
import play.api.http.LazyHttpErrorHandler | |
import play.api.http.Status._ | |
import play.api.libs.iteratee.{Iteratee, Traversable} | |
import play.api.mvc.BodyParsers.parse._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import akka.stream.{Attributes, Outlet, SourceShape} | |
import akka.stream.stage.{OutHandler, GraphStageLogic, GraphStage} | |
import scala.concurrent.{ExecutionContext, Future} | |
import scala.util.{Success, Failure, Try} | |
case class RecursiveSource[State, Out]( | |
init: () => Future[(Option[State], Out)], | |
f: State => Future[(Option[State], Out)])(implicit exec: ExecutionContext) extends GraphStage[SourceShape[Out]] { | |
val out: Outlet[Out] = Outlet("RecursiveSource Out") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Douglas Black | |
" Colors {{{ | |
syntax enable " enable syntax processing | |
"colorscheme badwolf | |
" }}} | |
" Misc {{{ | |
set ttyfast " faster redraw | |
set backspace=indent,eol,start | |
" }}} | |
" Spaces & Tabs {{{ |