The book:

Principles of Computational Modelling in Neuroscience
David Sterratt, Bruce Graham, Andrew Gillies, David Willshaw
Published June 2011 by Cambridge University Press
402 pages with 178 b/w and 2-colour illustrations and 7 tables.

contains many code examples at this web site:

The frontmatter for the book (including the table of contents and
preface) is available here.