Skip to content

Instantly share code, notes, and snippets.

@Bretto
Bretto / ts
Last active April 5, 2020 11:08
takeUntil
const click$ = Rx.Observable
.fromEvent(document, 'click');
const four$ = Rx.Observable.interval(4000).take(1);
/*
click$ --c------c---c-c-----c---c---c-
four$ -----------------0|
clickUntilFour$ --c------c---c-c-|
*/
@Bretto
Bretto / index.html
Created May 31, 2019 11:00 — forked from tomeustace/index.html
d3 v4 translateBy, scaleBy and scaleTo example usage
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.view {
fill: blue;
stroke: #000;
}
</style>