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
// A Ruby-like "range" for JavaScript | |
// https://github.com/thunder9 | |
// | |
// Require: https://github.com/thunder9/rb-enumerable.js | |
(function (global) { | |
if (!global.RubyLike.enumerable || !global.RubyLike.Enumerator) { | |
throw Error('rb-enumerable.js required'); | |
} |
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
// A sequencer in JavaScript | |
// https://github.com/thunder9 | |
// | |
(function () { | |
var List = function () { | |
this.first = null; | |
this.last = null; | |
this.current = null; |
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
### | |
A port of AO render benchmark to CoffeeScript | |
by thunder9 (https://github.com/thunder9) | |
Original program (C) Syoyo Fujita in Javascript (and other languages) | |
http://lucille.atso-net.jp/blog/?p=642 | |
http://lucille.atso-net.jp/blog/?p=711 | |
### | |
IMAGE_WIDTH = 256 | |
IMAGE_HEIGHT = 256 |