Sometimes when coding you might invert like 3, 4, 5, 10 days or more in some complex and very unique code that works brilliant! But you don't feel like sharing it because it was so much work that you don't want everybody just using it. Please do so, it might be good for you.
So, sharing your code is good, you'll always be the creator, your code will say it in the comment, your Github will say it too, you make contributions to a "better quality" web and you can get contributors that can in a lot of less time very very interesting things to your code (think on plugins, bug fixes, upgrades, etc.) and you'll be a little more famous :).
Don't be afraid to share your code, you've used open source code too sometime, and is not that bad.
That's all for today.