March 2010
2 posts
3 tags
Game of Life Implementation in Erlang →
This is a Game of Life implementation written in Erlang. Each cell is handled by a single process and each process talks to nearby cells via message passing to figure out state. At the end of the simulation the cells send their final state back to the root node i.e. the process that spawned them. I tried to stick with Erlang conventions for recursion and whatnot, but there are some rough edges,...
Mar 24th
2 tags
Find file, cd to parent directory
For jumping around in elaborate source trees. Usage: cdto [search root directory] [case insensitive filename] If you just want to search current directory: cdto [case insensitive filename] Automatically appends * to search filename. Update October 10, 2011: There are some nifty cd related scripts in this assorted archive of shell scripts on GitHub. The CDPATH stuff is pretty neat.
Mar 9th
3 notes