Skip to content

Instantly share code, notes, and snippets.

@thunder9
thunder9 / ao-render.coffee
Last active December 10, 2015 07:58
A port of AO render benchmark to CoffeeScript
###
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
@thunder9
thunder9 / sequencer.js
Created September 23, 2012 09:58
A sequencer in JavaScript
// A sequencer in JavaScript
// https://github.com/thunder9
//
(function () {
var List = function () {
this.first = null;
this.last = null;
this.current = null;
@thunder9
thunder9 / rb-range.js
Created September 7, 2012 14:06
A Ruby-like "range" for JavaScript
// 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');
}