Flycut a simple clipboard manager for developers. It is based on Jumpcut, an open-source app. Flycut is also open-source.
Flycut saves every time you copy code pieces. You can paste it later using Shift/Command-V, even if there is something else in your clipboard. You can modify hotkeys and other settings in preferences.
Version 1.9.6: