collection of illustrative programs:small games, simulators: C, Matlab
...Other types of programs may figure too: Snake or Tetris in C for showing the C programming style opted for the other, more specific programs.
Possibly this is a link for supplying material to some Wiki articles related to videogames and gamep-physics.