This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import akka.util.ByteString | |
| import scodec.Attempt.Successful | |
| import scodec.DecodeResult | |
| import scodec.Decoder | |
| import scodec.bits.BitVector | |
| class DecoderGather[R](decoder: Decoder[R]) { | |
| private var bitBuffer = BitVector.empty | |
| def apply(chunk: ByteString): Seq[R] = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io | |
| import scala.concurrent.Future | |
| import akka.actor.ActorRef | |
| import akka.actor.ActorSystem | |
| import akka.actor.FSM | |
| import akka.actor.PoisonPill | |
| import akka.actor.Props | |
| import akka.stream.ActorMaterializer | |
| import akka.stream.OverflowStrategy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io | |
| import java.net.InetSocketAddress | |
| import akka.actor.Actor | |
| import akka.actor.ActorRef | |
| import akka.actor.ActorSystem | |
| import akka.actor.FSM | |
| import akka.actor.Props | |
| import akka.io.IO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io | |
| import scala.concurrent.Future | |
| import akka.actor.ActorRef | |
| import akka.actor.ActorSystem | |
| import akka.actor.FSM | |
| import akka.actor.PoisonPill | |
| import akka.actor.Props | |
| import akka.stream.ActorMaterializer | |
| import akka.stream.OverflowStrategy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io | |
| import scala.concurrent.duration.DurationInt | |
| import scala.util.Success | |
| import akka.actor.ActorRef | |
| import akka.actor.ActorSystem | |
| import akka.actor.FSM | |
| import akka.actor.PoisonPill | |
| import akka.actor.Props |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| // derived from http://bl.ocks.org/bunkat/1962173 | |
| <head> | |
| <title>Swimlane using d3.js</title> | |
| <script src="./d3.js" charset="utf-8"></script> | |
| <script src="http://labratrevenge.com/d3-tip/javascripts/d3.tip.v0.6.3.js"></script> | |
| <style> | |
| .chart { | |
| shape-rendering: crispEdges; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import scala.concurrent.Await | |
| import scala.concurrent.Future | |
| import scala.concurrent.duration.Duration | |
| import scala.util.Try | |
| import akka.actor.ActorSystem | |
| import akka.http.scaladsl.Http | |
| import akka.http.scaladsl.model.ContentType | |
| import akka.http.scaladsl.model.HttpCharsets | |
| import akka.http.scaladsl.model.HttpEntity.Strict |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package conditionals | |
| import scala.collection.immutable.Seq | |
| import akka.actor.ActorSystem | |
| import akka.stream.ActorMaterializer | |
| import akka.stream.scaladsl.Source | |
| import scala.concurrent.Future | |
| import akka.stream.scaladsl.Sink | |
| import akka.stream.scaladsl.FlowGraph | |
| import akka.stream.scaladsl.Broadcast |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var rx = require('rx') | |
| module.exports = { | |
| /** | |
| * This method wraps an EventSource as an observable sequence. | |
| * | |
| * Generalizes https://github.com/Reactive-Extensions/RxJS-DOM/blob/master/src/eventsource.js | |
| * by allowing different Observables on the same EventSource, based on the event type. | |
| * | |
| * Copyright Microsoft Open Technologies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Extracted from the Bidi example at http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0-RC3/scala/stream-graphs.html | |
| */ | |
| package bidi | |
| import akka.util.ByteString | |
| import akka.stream.scaladsl.BidiFlow | |
| import akka.stream.scaladsl.Flow | |
| import akka.stream.BidiShape | |
| import java.nio.ByteOrder |