Some of the code I have written for my various research projects is open source and available on Bitbucket. It might be "academic quality" code, so use at your own risk.
If you're interested in code that I have written for a research paper and don't see it on bitbucket, send me e-mail. Unless I am legally prohibited from doing so, I can almost surely be convinced into sharing my code.
I should also mention that I use bitbucket's academic license and host almost all my projects at bitbucket.