Skip to content

Instantly share code, notes, and snippets.

View vil1's full-sized avatar
❤️
Speading love

Valentin Kasas vil1

❤️
Speading love
  • 47degrees
  • between a chair and a keyboard
View GitHub Profile
#!/bin/sh
### BEGIN INIT INFO
# Provides:
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Event Store at boot time
# Description: Runs the Event Store database node
### END INIT INFO
package ahoy
import scala.collection.mutable
object transducer {
type Reducer[A, R] = R => A => R
trait Transducer[A, B] {
package scalaio
import shapeless._, poly._
object list extends (Id ~> List) {
def apply[T](t : T) = List(t)
}
object headOption extends (List ~> Option) {
def apply[T](l : List[T]) = l.headOption
object Events {
object Event {
def build(typee: String) = {
typee match {
case "foo" => new FooEvent
case "bar" => new BarEvent
}
}
}