Skip to content

Instantly share code, notes, and snippets.


James Parsons James-Parsons

View GitHub Profile
James-Parsons / SuicidalActor.scala
Last active Nov 14, 2016
A suicidal actor for a web socket.
View SuicidalActor.scala
object SuicidalActor {
def props(out: ActorRef) = Props(new SuicidalActor(out))
class SuicidalActor(out: ActorRef) extends Actor {
def receive = {
case msg: String =>
out ! ("I hate my life!"))
View SC Widget.html
<a href="" target="blank"><img src="" /></a>