Skip to content

Instantly share code, notes, and snippets.

View hamsterready's full-sized avatar

Maciej Lopacinski hamsterready

  • Quaternion.pl
  • Poznan, Poland
View GitHub Profile
// input,
burger - 15 minutes
beef
onion
ketchup
tomato
tomato soup - 30 minutes
tomato
pepper
parmigiana - 60 minutes
object HttpServer {
def run(): ZIO[Blocking with Clock, Throwable, Unit] =
ZIO.runtime[Clock].flatMap { implicit rts =>
val dsl = Http4sDsl[Task]
import dsl._
val app = HttpRoutes.of[Task] {
case GET -> Root / "ping" => Ok("pong")
}
for {
//bec <- ZIO.access[Blocking](_.get.blockingExecutor.asEC)

Keybase proof

I hereby claim:

  • I am hamsterready on github.
  • I am hamster (https://keybase.io/hamster) on keybase.
  • I have a public key whose fingerprint is AEE4 8BF9 8C0F 934F 9177 4756 1524 40CF 9F2E F8EA

To claim this, I am signing this object: