Skip to content

Instantly share code, notes, and snippets.

@tusharmath
Last active April 19, 2017 05:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tusharmath/2c656a5171401cb6986bd1bfd9bfe635 to your computer and use it in GitHub Desktop.
Save tusharmath/2c656a5171401cb6986bd1bfd9bfe635 to your computer and use it in GitHub Desktop.
esnextbin sketch
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ESNextbin Sketch</title>
<!-- put additional styles and scripts here -->
</head>
<body>
<!-- put markup and other contents here -->
</body>
</html>
// write ES2015 code and import modules from npm
// and then press "Execute" to run your program
import * as O from 'observable-air'
import * as R from 'ramda'
const $ = O.skipRepeats(R.equals, O.sample(
R.identity,
O.frames(),
[O.of(10)]
))
O.forEach(console.log, O.slice(0, 10, $))
{
"name": "esnextbin-sketch",
"version": "0.0.0",
"dependencies": {
"observable-air": "3.0.5",
"ramda": "0.23.0"
}
}
'use strict';
var _observableAir = require('observable-air');
var O = _interopRequireWildcard(_observableAir);
var _ramda = require('ramda');
var R = _interopRequireWildcard(_ramda);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
// write ES2015 code and import modules from npm
// and then press "Execute" to run your program
var $ = O.skipRepeats(R.equals, O.sample(R.identity, O.frames(), [O.of(10)]));
O.forEach(console.log, O.slice(0, 10, $));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment