Skip to content

Instantly share code, notes, and snippets.

Avatar

James Parsons James-Parsons

View GitHub Profile
@James-Parsons
James-Parsons / SuicidalActor.scala
Last active Nov 14, 2016
A suicidal actor for a web socket.
View SuicidalActor.scala
import akka.actor._
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="https://stylecollective.us" target="blank"><img src="http://www.yourwebsite.com/your-image-file-url.jpg" /></a>