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
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()) -> |
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
loadTasks = require 'load-grunt-tasks' | |
module.exports = (grunt) -> | |
env = process.env | |
cwd = process.cwd() | |
root = "#{cwd}/../../go" | |
src = "#{root}/src/#{env.src}" | |
command = (cmd, opts) -> | |
command: cmd |
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
#encoding: IBM437 | |
require 'rake' | |
require 'fileutils' | |
task :clean, :folder do |t, args| | |
Music.new(args.to_hash).cleanup | |
end | |
task :biggie, :folder do |t, args| |
NewerOlder