Skip to content

Instantly share code, notes, and snippets.

Avatar

mike suarez msuarz

View GitHub Profile
View callbacks.coffee
exports.build_multiple_files_engine = (done) ->
add_file 'people_perf_multiple', 'common', files.common, ->
add_file 'people_perf_multiple', 'test', files.test_common, ->
add_file 'people_perf_multiple', 'test1', files.test1, ->
add_file 'people_perf_multiple', 'test2', files.test2, done
View Calculator.js
exports.Calculator = (function() {
function Calculator() {}
Calculator.prototype.square = function(x) {
return x * x;
};
return Calculator;
@msuarz
msuarz / game_of_life.coffee
Created Dec 2, 2011
Conway's Game of Life in Coffeescript
View game_of_life.coffee
class exports.GameOfLife
constructor: (@cells) -> @read_board()
evolve: ->
for row in [0...@size]
for col in [0...@size]
@evolve_at row, col
evolve_at: (@row, @col, neighbors = @neighbors()) ->
You can’t perform that action at this time.