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 useful if you are using Mocha for your tests, Browserify for Modules and Handlebars for templates. | |
* It should be set up before running tests | |
* Note that require.extensions is depreciated: http://nodejs.org/api/globals.html#globals_require_extensions | |
* It is based on https://gist.github.com/akre54/11183020 | |
*/ | |
var Handlebars = require('handlebars'); | |
var fs = require('fs'); | |
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
var gulp = require('gulp'); | |
var browserify = require('gulp-browserify'); | |
var concat = require('gulp-concat'); | |
var styl = require('gulp-styl'); | |
var path = require('path'); | |
var o = require('open'); | |
var ripple = require('ripple-emulator'); | |
var webPath = function (p) { return path.join('./www/', p); }; | |
// Builds the scripts based on a single entry point using browserify |
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
<h1>First-level Headers are Supported</h1> | |
<p>Paragraphs are supported.</p> | |
<p>Paragraphs are definitely supported.</p> | |
<h2>Second-level Headers are Supported</h2> | |
<ul> | |
<li>Unordered lists are supported</li> | |
<li>They are one of my favourite things to do in Markdown</li> |
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 showSampleGist() { | |
console.log('This is a sample gist'); | |
} | |
setInterval(showSampleGist, 1000); |
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
var skier; | |
var trees = []; | |
var mouseX = getCentreOfViewport(); | |
var mouseY = mainCanvas.height; | |
dContext.getLoadedImage = function (imgPath) { | |
if (images[imgPath]) { | |
return images[imgPath]; | |
} | |
}; |