Skip to content

Instantly share code, notes, and snippets.

@frankandrobot
frankandrobot / bacon.combineTemplate.js
Last active November 7, 2015 18:11
BaconJS combineTemplate vs HighlandJS zip vs Bluebird join vs BaconJS zip vs Kefir zip
const restify = require('restify');
const server = restify.createServer();
const Bacon = require('baconjs');
server.get('/', function(req, res, next) {
const a = Bacon.once('a');
const b = Bacon.once('b');
@frankandrobot
frankandrobot / ScalaAsyncMapPlayground
Created March 26, 2015 04:17
Playground showing complex async transforms
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future
case class Tag(name:String = "0")
object HelloWorld {
def fetchAllTags:Future[List[Tag]] = Future{ List(Tag("a"), Tag("b"), Tag("c")) }