This gist includes the source code for multiple versions of the same simple mode.
source: Martin Feinberg (1980) Lectures on Chemical Reaction Networks - Lecture 1 http://www.che.eng.ohio-state.edu/~FEINBERG/LecturesOnReactionNetworks/
I've added an additional gist for content related to Systems Biology Markup Language (SBML) at https://gist.github.com/3666649