Skip to content

Instantly share code, notes, and snippets.

@tusharmath
Last active March 30, 2017 14: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/cac388b8b6b16a913c536d0b22044d05 to your computer and use it in GitHub Desktop.
Save tusharmath/cac388b8b6b16a913c536d0b22044d05 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 R from 'ramda'
import * as O from 'observable-air'
const print = O.forEach(document.writeln.bind(document))
const counter = R.compose(
print,
O.map(R.always('.')),
O.frames
)
counter()
{
"name": "esnextbin-sketch",
"version": "0.0.0",
"dependencies": {
"ramda": "0.23.0",
"observable-air": "3.0.5"
}
}
'use strict';
var _ramda = require('ramda');
var R = _interopRequireWildcard(_ramda);
var _observableAir = require('observable-air');
var O = _interopRequireWildcard(_observableAir);
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 print = O.forEach(document.writeln.bind(document));
var counter = R.compose(print, O.map(R.always('.')), O.frames);
counter();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment