The examples used here have been written for the Arduino Uno board. If you use a different board, changes to the code (pin numbers in particular) may be required.
Many of the examples borrow from the examples at http://arduino.cc/en/Tutorial/HomePage.