Skip to content

Instantly share code, notes, and snippets.

@msuarz
msuarz / game_of_life.coffee
Created December 2, 2011 14:07
Conway's Game of Life in Coffeescript
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()) ->
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
@msuarz
msuarz / music.rb
Last active August 29, 2015 14:05
music folder cleanup
#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|