github. Write code that others would love to clone ;-). Fork other projects and improve them to grok awesome ideas and practices. OSS in general not just github...
This is good advice. Another good tool to better yourself is reading code. This lets you think about why people have written code the way they have, and whether you agree with how they did it.