Skip to content

Instantly share code, notes, and snippets.

@bantonsson
bantonsson / PuzzlePeekScala.kojo
Created October 14, 2011 09:01
The Kojo Presentation that Phil Bagwell presented at Scala LiftOff London 2011
// Click the Run button in the toolbar above to start the story
//
// =================================================================
//
// The source for the story is provided below
val pageStyle = "color:#1e1e1e; margin:15px;font-size:large"
val centerStyle = "text-align:center;"
val headerStyle = "text-align:center;font-size:110%;color:maroon;"
val codeStyle = "font-size:90%;"
@bantonsson
bantonsson / ! Spotlight for Multi Node Testing
Last active October 12, 2015 10:58
Spotlight for Multi Node Testing
Spotlight for Multi Node Testing
@bantonsson
bantonsson / Akka SBT Plugin Description.txt
Last active October 12, 2015 15:08
Akka sbt-plugin packaging dependencies
In a new directory:
> mkdir project foo bar
Place ExampleBuild.scala and plugins.sbt in project
sbt foo/dist
@bantonsson
bantonsson / ! Spotlight for SSL Support
Last active October 13, 2015 00:18
Spotlight for SSL Support
Spotlight for SSL Support
@bantonsson
bantonsson / ! Spotlight for Futures
Last active October 13, 2015 00:27
Spotlight for Futures
Spotlight for Futures
@bantonsson
bantonsson / Akka SBT Plugin With Names Description.txt
Last active December 14, 2015 01:09
Akka sbt-plugin packaging dependencies with names set for some projects
In a new directory:
> mkdir project foo bar baz biz
Place ExampleBuild.scala and plugins.sbt in project
sbt foo/dist
ls -la foo/target/dist/lib
@bantonsson
bantonsson / Akka 2.2 Spotlight Mailbox Configuration
Last active December 18, 2015 16:39
Akka 2.2 Spotlight Mailbox Configuration
Akka 2.2 Spotlight Mailbox Configuration
@bantonsson
bantonsson / Akka 2.2 Spotlight Mailbox Requirements
Last active December 18, 2015 17:59
Akka 2.2 Spotlight Mailbox Requirements
Akka 2.2 Spotlight Mailbox Requirements
@bantonsson
bantonsson / ! Multi Node testing and sbt-0.13
Last active December 21, 2015 22:29
Multi Node testing and sbt-0.13
Multi Node testing and sbt-0.13
@bantonsson
bantonsson / FormUpload.scala
Created March 3, 2015 12:49
Akka HTTP 1.0-M4 File upload using a form
/*
* Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com>
*/
import akka.actor.ActorSystem
import akka.http.Http
import akka.http.Http.IncomingConnection
import akka.http.model.HttpEntity
import akka.http.model.Multipart.FormData
import akka.http.server.{ Directives, Route, RoutingSetup }