View index.html
<!DOCTYPE html>
<meta charset="utf-8"/>
<title>es6 proxy #jsbench #jsperf</title>
<script src=""></script>
<script src="./suite.js"></script>
<h1>Open the console to view the results</h1>

#Create dynamic objects in a nodejs6 REPL with Proxy

Nodejs 6.x comes with ES6 Proxy support baked in. Just like Ruby's method-missing (aka ghost methods), you can intercept getters and setters on an object and, like ActiveRecord in Rails, write rich APIs that can take any method or property name you like.

They are particularly fun in a REPL, where you might want to handle undefined variables.

For example, say we started a nodejs REPL via:

View App.js
import Start from './Start'
import NextPage from './NextPage'
const Views = { Start, NextPage }
initialRoute={{ view: 'Start' }}
renderScene={(route, navigator) => {
const SceneComponent = Views[route.view];
return <SceneComponent {...route.props} navigator={navigator} />;
#Usage echoline LINE_NUMBER FILE
function echoline() { sed -n "$(($1 - 5)),$(($1 + 5))p" $2; }
View gist:3987615
git branch --merged master | grep -v 'master$' | xargs git branch -d
View gist:3987610
git branch -r --merged master | sed 's/ *origin\///' | grep -v 'master$' | xargs -I% git push origin :%
class Person
info: {}
setName: (name) -> = name
justin = new Person()
justin.setName "justin"
paul = new Person()
View gist:3195313
doc = document.implementation.createDocument('', 'html')
doc.documentElement.innerHTML = "<div><p class='first'>...</p></div>"
nodeList = doc.querySelectorAll(".first")
baseUrl: '/static/coffee/app'
text: '/static/js/require.text'
underscore: '/static/js/underscore-min'
backbone: '/static/js/backbone-min'
backboneTP: '/static/js/backbone-tastypie'
exports: '_'
View cucumber.feature
Feature: Present clearly
As a presenter
I'd like to ensure my content is clear and concise
So that my audience understand the value of Cucumber
Scenario: Ensure audience can see the presentation
Given I start the presentation off
Then the audience should be able to see the initial slide
And the slide should have the content "green like a cuke!"