This file contains 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
pipe(stream('water'), [ | |
stream('bathroom'), [ | |
stream('sink'), | |
stream('toilet') | |
], | |
stream('kitchen'), [ | |
stream('sink'), | |
stream('dishwasher') | |
], | |
]) |
This file contains 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
+--->res | |
| | |
| | |
req+--->outer template+--->inner template+-->res | |
| | |
| | |
+--->res |
This file contains 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
Stream | |
+--------------+ -Stream(function(arg1[, arg2[, ...]])) | |
+--| src | -pipe(dest) | |
| | -write(arg1[, arg2[, ...]]) | |
| f(x) | -pause() | |
| | -resume() | |
| dest |--+ -src | |
+--------------+ | |
¯\_(ツ)_/¯ |
This file contains 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
// filter | |
// +---------------------------+ | |
// | +----------+ | | |
// +--|-| stream |--+ | | |
// | +----------+ | | | |
// | +----------+ | | | |
// +--|-| stream |--+ | | |
// | +----------+ | | | |
// | | | | |
// | | | |
This file contains 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
<!doctype html> | |
<html ng-app> | |
<head> | |
<title ng-controller="Todo">Todos ({{todos.length}})</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script> | |
<script src="todo-class.js"> | |
function Todo() { | |
this.todos = [ | |
{text:'learn angular', done:true}, | |
{text:'build an angular app', done:false} |