Skip to content

Instantly share code, notes, and snippets.

View hstraub's full-sized avatar

Herbert Straub hstraub

View GitHub Profile
@hstraub
hstraub / gist:8c99470f1de735edb298
Created November 10, 2015 11:55
Firefox web console - load script.js
var script = document.createElement("script");
script.src = "http://whatever.com/js/my/script.js";
document.body.appendChild(script);
@hstraub
hstraub / gist:b4b04778c9271f998608
Last active September 8, 2015 12:30
Akka streams test
import akka.actor._
import akka.stream._
import akka.stream.scaladsl._
import com.typesafe.config.ConfigFactory
val customConf = ConfigFactory.parseString("""
akka.loglevel = "DEBUG"
akka.actor.debug.lifecycle = "on"
akka.actor.debug.receive = "on"
akka.actor.debug.autoreceive = "on"
@hstraub
hstraub / gist:fee62fb3d65e86217347
Last active August 29, 2015 14:17
sbt compiler deprecation warnings

Compiler Warnings:

[warn] there were 5 deprecation warnings; re-run with -deprecation for details

Change the settings in sbt

$ sbt
@hstraub
hstraub / gist:da1add4573520c5c1bfa
Created March 6, 2015 13:47
Scala trait with type
trait Super {
type A
def value: A
}
case class B1( value: String ) extends Super {
type A = String
}