Skip to content

Instantly share code, notes, and snippets.

View gamsd's full-sized avatar

Guilherme Dantas gamsd

View GitHub Profile

Keybase proof

I hereby claim:

  • I am gamsd on github.
  • I am gamsd (https://keybase.io/gamsd) on keybase.
  • I have a public key ASDA93qTn_LbkGIFSpkJOxS5fJWvdTW0a1wpbTDBU4ImWwo

To claim this, I am signing this object:

@gamsd
gamsd / akka-http-simple
Created April 3, 2015 21:42
Akka HTTP extremely simple example
import akka.actor.ActorSystem
import akka.http.Http
import akka.http.marshallers.sprayjson.SprayJsonSupport._
import akka.http.model.StatusCodes._
import akka.http.server.Directives._
import akka.http.server.PathMatchers.IntNumber
import akka.stream.{ActorFlowMaterializer, FlowMaterializer}
import spray.json.{DefaultJsonProtocol, _}
import scala.concurrent.ExecutionContextExecutor