Skip to content

Instantly share code, notes, and snippets.

View cezary's full-sized avatar

cezary cezary

  • Chicago / Los Angeles
View GitHub Profile

Following is a translation of a post by Kenta Cho (@abagames) about what he learned making 50 minigames in 2014. The original post is here:

http://d.hatena.ne.jp/ABA/20141223#p1

This translation is by Paul McCann (@polm23); please feel free to contact me with any comments or corrections.

The Secret to Creating Fun Games I Learned By Making 50 Games in a Year

... is that there isn't one.

// https://github.com/EyalAr/lwip/issues/100#issuecomment-71363633
var fs = require('fs');
var exif = require('exif-parser');
var lwip = require('lwip');
// path is the path to your image
fs.readFile(path, function (err, data) {
if (err) throw err;
var exifData = false;
# returns an elements unique css selector http://stackoverflow.com/questions/4588119/get-elements-css-selector-without-element-id
selector = (el, nodeChild = false)->
names = []
while el.parentNode
if el.id
names.unshift "##{ el.id }"
break
else
c = 1