This is perhaps just the next thing, setup a blog and a bunch of repos on github, and if that makes the recruiter think you a better candidate, I am sure shortly everyone will do it, if they aren't already.
What's the point behind publishing code to prove that you actually can code if no one is going to look at it?
To the whole Github thing, just had this happen.
Got a call from a recruiter from an company I interviewed with a year ago. We couldn't make things work then, but in the words of the recruiter, "Everyone loved you and we have new spot that you fit perfect".
Fortunately for them I open right now so I say I'll be glad to talk to them, and he says he'll get right back.
Next day I get an email from someone at the company, saying before they move to the phone screen he has a couple of questions. What's my Stackoverflow presence, my Github, and what Coursera course have I taken.
Never heard back in over a week since I replied negatively about those items.
Going to call the recruiter tomorrow to let him know he has at least one person now that doesn't love me.