Practice, practice, practice. Come up with ideas - build them. Improve upon them. Build more projects. Build new things with different technologies, or in a different way.
Look back on your old code, and marvel at how _wrong_ it was. Rewrite it better.
Read through open source code. I learned things from reading the Linux kernel source that made me absolutely destroy my C classes. I've learned dirty hacks from Rails' source that I use all the time.
But seriously. Hack lots of code and write lots of experiments.