Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
####### Configure environment
set -e # fail fast
set -o pipefail # don't ignore exit codes when piping output
# set -x # enable debugging
# Configure directories
build_dir=$1
function BlitTerrain(surface) {
this.surface = surface;
this.sprite = new Blit.Sprite(this.surface, 128, 128, 'images/dirt.jpg');
}
BlitTerrain.prototype.render = function(seconds, map, rect) {
var width = this.sprite.width;
var height = this.sprite.height;
var ox = Math.floor(rect.left / width) * width;
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking guarded-waters-4043.herokuapp.com (be patient)
Server Software: Cowboy
Server Hostname: guarded-waters-4043.herokuapp.com
Server Port: 80
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking guarded-waters-4043.herokuapp.com (be patient)
Server Software: Cowboy
Server Hostname: guarded-waters-4043.herokuapp.com
Server Port: 80
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>
function *cache(next) {
this.set('ETag', '123');
if (this.fresh) {
this.status = 304;
return;
}
yield next;
}
builder
.on('building', console.log.bind(console, 'building...'))
.on('built', console.log.bind(console, 'built.'))
.on('ready', console.log.bind(console, 'ready.'))
.on('change', console.log.bind(console, 'changed:'))
.on('watching', function(files) {
console.log('watching', files.length, 'files.');
})
.build();
/** @jsx React.DOM */
var React = require('react');
module.exports = React.createClass({
render: function() {
<h1>Route: { this.props.route }</h1>
}
});
//require('./jsx-modules'); // Enable JSX transforms for require
var defer = require('q').defer;
//var react = require('react-tools');
function *page() {
this.body = yield render({
route: this.path
});
}
node_modules
bower_components/
!bower_components/jquery/jquery.js
!bower_components/pixi/bin/pixi.js
# why does this not allow me to include jquery.js or pixi.js?
# On branch rigid-bodies
# Changes not staged for commit: