This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function *cache(next) { | |
this.set('ETag', '123'); | |
if (this.fresh) { | |
this.status = 304; | |
return; | |
} | |
yield next; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @jsx React.DOM */ | |
var React = require('react'); | |
module.exports = React.createClass({ | |
render: function() { | |
<h1>Route: { this.props.route }</h1> | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |