Skip to content

Instantly share code, notes, and snippets.

@durban
durban / build.sbt
Last active March 5, 2017 13:27
Streaming JSON encoding
/*
* Copyright 2017 Daniel Urban
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
package com.example
import akka.typed.ActorRef
import akka.typed.ScalaProcess._
import scala.concurrent.duration._
object Example {
sealed trait CntReq {
def replyTo: ActorRef[Int]
@durban
durban / build.sbt
Last active November 22, 2016 19:48
Scala 2.12 transient lazy val
lazy val core = project.in(file("."))
.settings(commonSettings)
lazy val commonSettings = Seq[Setting[_]](
scalaVersion := "2.11.8",
crossScalaVersions := Seq("2.11.8", "2.12.0"),
scalacOptions ++= Seq(
"-feature",
"-deprecation",
@durban
durban / EclipseHack.scala
Last active December 6, 2017 12:15
Eclipse + Typelevel compiler: put it under ~/.sbt/1.0/plugins/ and use the 'exlipse' command (requires sbteclipse 5.2.4)
/*
* Copyright 2016-2017 Daniel Urban
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@durban
durban / keybase.md
Created September 30, 2014 21:03
keybase.md

Keybase proof

I hereby claim:

  • I am durban on github.
  • I am durban (https://keybase.io/durban) on keybase.
  • I have a public key whose fingerprint is 36A8 2002 483A 4CBF A5F8 DF6F 48B2 9573 BF19 7B13

To claim this, I am signing this object: