- Programming, Motherfucker!
- Clean fucking code, Motherfucker!
- Virtual DOM shit, Motherfucker!
- Faster than light, Motherfucker!
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> | |
<head> | |
<meta charset="utf-8"> | |
<script src="http://www.jaybirdsport.com/static/js/greensock/plugins/ThrowPropsPlugin.min.js"></script> | |
</head> | |
<body> | |
<div id="test-container"></div> | |
<!-- Generated by `npm run test-browser` --> | |
<script src="tests-bundle.js"></script> | |
</body> |
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
{ | |
"presets": ["es2015"], | |
"plugins": [ | |
["module-provider", { | |
"@cycle/dom": ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", | |
"bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", | |
"cite", "code", "col", "colgroup", "dd", "del", "dfn", "dir", "div", "dl", | |
"dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", | |
"h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", | |
"i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", |
$ node --version
v5.2.0
$ npm ls
[email protected] /home/tylor/code/most/test/perf
├── @reactivex/[email protected]
├── [email protected]
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
type SeedValue<S, V> = { seed: S, value: V }; | |
type TimeValue<V> = { time: number, value: V }; | |
type CreateGenerator<A> = (...args: Array<any>) => Generator<A|Promise<A>, any, any>; | |
declare type Stream<A> = { | |
reduce<B>(f: (b: B, a: A) => B, b: B): Promise<B>; | |
observe(f: (a: A) => any): Promise<any>; | |
forEach(f: (a: A) => any): Promise<any>; | |
drain(): Promise<any>; |
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
Running 55 benchmarks, please wait... | |
Native .fill() vs fast.fill() (3 items) | |
✓ Array.prototype.fill() x 12,868,637 ops/sec ±4.44% (66 runs sampled) | |
✓ fast.fill() x 25,604,456 ops/sec ±2.60% (64 runs sampled) | |
Result: fast.js is 98.97% faster than Array.prototype.fill(). | |
Native .fill() vs fast.fill() (10 items) | |
✓ Array.prototype.fill() x 7,098,897 ops/sec ±4.15% (74 runs sampled) |
made with esnextbin
made with esnextbin
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 React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { holdSubject } from 'most-subject'; | |
import App from '../containers/App'; | |
import FriendSearchView from '../containers/FriendSearchView'; | |
export default function viewDriver(state$) { | |
const searchChange$ = holdSubject(1); | |
const searchKeyDown$ = holdSubject(1); |
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 {div, thunk} from '@motorcycle/dom' | |
function googleMaps(center, zoom) { | |
return div({ | |
hook: { | |
insert({elm}) { | |
const map = new google.maps.Map(elm, { | |
center, | |
zoom, | |
}) |