In that case (I'm pretty most have heard about it but if you're a programmer newbie...) Google code search is still one of the best online tools since it's index is completely different from the traditional "version" and designed for the purpose of helping programmers to find what they're looking for, with ease.
So, unlike with a traditional Google search engine the "code search" allows you to...
*. Specify packages using their names (such as only search for codes in GNU/Linux Kernel for instance).
Java, Pascal, Python, etc).
*. Search using "Class" attributes.
* . Search with with certain platforms such as Android or Chromium, etc.
*. Search in Functions or only codes that are available in a certain license.
So, the next time you want to search for a publicly available programming code, why not give a try for Google Code Search! :).