On May, 3rd-5th 2013, Andrea Rossi and Lila Panahi have been teaching a workshop on the use of Processing as tool for urban simulation at the MediaCities 4 conference at the University of Buffalo (NY, USA).
The codes used during the workshop, ranging from simple object-oriented programming to intermediate urban simulations based on cellular automata logics, have been shared online on GitHub.
The repository is available here: LINK