testing details
/** | |
* UMD pattern with anonymous function expression | |
*/ | |
(function(){ | |
var umd = function(factory){ | |
if (typeof exports === 'object') { | |
return module.exports = factory(); | |
} | |
else if (typeof define === 'function' && define.amd) { |
I hereby claim:
- I am d48 on github.
- I am d48 (https://keybase.io/d48) on keybase.
- I have a public key whose fingerprint is 349E 2B0D 38A9 D8B8 2F43 32AE 385B 0BD3 CEC3 B707
To claim this, I am signing this object:
I hereby claim:
- I am d48 on github.
- I am d48 (https://keybase.io/d48) on keybase.
- I have a public key ASB-oO7Tb9KV5ogsq1mUSxVlpbqnjJVxIQb1zVfeqf56IQo
To claim this, I am signing this object:
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- zh-CN and zh-TW translations from @tianshuo.
- de translation from @mpbzh.
// get native file system object | |
var fs = require('fs') | |
// get a template | |
, template = fs.readFileSync('./template.txt', 'utf8') | |
// read files from a directory called '/cultures' for file names, specifically language tag, e.g., 'en-US' or 'fr-FR' | |
, filesInDir = fs.readdirSync('./cultures/') | |
// create file handle to output to | |
, stream = fs.createWriteStream('./bundles.txt') |
var elInputName = DOMUtil.create({ | |
type: 'input' | |
, subType: 'textField' | |
, placeholder: 'Type in your name' | |
, class: 'myModule--input-name' | |
, event: { | |
click: function() { console.log('clicked'); } | |
, hover: function() { console.log('i am hovered'); } | |
} | |
}); |
# Description: | |
# Display a random tweet from loudbot if someone YELLS in chat | |
# | |
# Dependencies: | |
# "ntwitter" : "https://github.com/sebhildebrandt/ntwitter/tarball/master", | |
# | |
# Configuration: | |
# HUBOT_TWITTER_CONSUMER_KEY | |
# HUBOT_TWITTER_CONSUMER_SECRET | |
# HUBOT_TWITTER_ACCESS_TOKEN_KEY |
The game we're building is a simple side-scrolling racing game. The player's car is static on the screen, only the background is moving. The enemies are planes whom the player must dodge using the up and down arrow keys. If the player hits a plane, he dies. One point is given each time a plane goes off screen without touching the player.
Our game is composed of sprites. Each sprite has a position (x, y), velocity (speed) and one image, or more if animated.
Images are loaded from the DOM using their CSS selector (imagesSelector
). We use ID selectors (#name
) for single images and class selectors (.name
) for animated sprites composed of several images.
See the images used in the game.
for pkg in `find . -d 2 -name package.json`; do cat $pkg | json name description; echo ""; done |