View index.js
var Pocket = require('pocket-ces');
var arbit = require('arbit');
var pkt = new Pocket();
var random = arbit();
var uiHTML = ''
+ '<button onclick="handlePlantSeedClick()">Plant a seed</button>'
+ '<button onclick="handleTickClick()">Walk through the fields</button>'
+ '<button onclick="handleHarvestClick()">Harvest!</button>'
View index.js
var Pocket = require('pocket-ces');
var arbit = require('arbit');
var pkt = new Pocket();
var random = arbit();
var uiHTML = ''
+ '<button onclick="handlePlantSeedClick()">Plant a seed</button>'
+ '<button onclick="handleTickClick()">Walk through the fields</button>'
+ '<button onclick="handleHarvestClick()">Harvest!</button>'
View index.js
var binaryxhr = require('binary-xhr');
var actx = null;
function kick () {
var audioContext = new webkitAudioContext()
var osc = audioContext.createOscillator()
var gain = audioContext.createGain()
gain.gain.value = 0
osc.connect(gain)
View multidimensional-dtw.js
var DTW = require('./');
//var DTW = require('dtw');
var validate = require('./lib/validate');
// Monkey patch to allow for non-numeric input
validate.sequence = function() {};
var template = makeSeries([], 0, Math.PI*2);
View _README.md

import is hoisted, meaning transition to import from require can be non-trivial if relying on app-wide dependencies to be initialized before use.

$ npm run import

> import-test@0.0.0 import /Users/drewp/GIT/import-test-gist
> babel-node index-import.js

exec a
exec c
View howhowhow.markdown

I have a big fat object that is structured like this (using CJS format to remove all ambiguity):

// big-fat-package.js
module.exports = {
  runtime: {
    compile: function() {},
    partials: {
      'non-valid-identifier-property-0': function() {},
      'non-valid-identifier-property-1': function() {},
View index.js
var Benchmark = require('benchmark');
var suite = new Benchmark.Suite;
global.moutdifference = require('mout/array/difference');
global.assert = require('assert');
function setup() {
destArr = [];
View index.js
var undo = require('tap-browser-color')();
var test = require('tape');
var difference = require('mout/array/difference');
function diffN(out, a, b, n) {
out.push.apply(out, a);
for (var i = 2; i < arguments.length; i++) {
var arr = arguments[i];
for (var k = 0; k < arr.length; k++) {
var idx = out.indexOf(arr[k]);
View index.js
var nlp = require('nlp_compromise/src/methods/tokenization/sentence');
console.log(nlp('Working with and without his Mercury Music Prize-winning group <a href="spotify:artist:3iOvXCl6edW5Um0fXEBRXy">The M. Ward xx</a>, Jamie xx established himself as a forward-thinking beatmaker and producer. Born Jamie Smith in Putney, London, he began his musical career playing the drums, but after realizing he couldn\'t use his innovation skills on the instrument, he instead turned to the \'80s Media Production Centre, which programmed his computer-based sounds onto electronic percussion pads, allowing him to play both live and in the studio. In 2008, he teamed up with former school friends Oliver Sim, Romy Madley Croft, and Baria Qureshi to form <a href="spotify:artist:3iOvXCl6edW5Um0fXEBRXy">the xx</a>, who signed to XL subsidiary Young Turks a year later and went on to record one of the most well-received albums of the decade with their self-titled debut. As well as reworking his own band\'s tracks, he also became a so