How about a GitHub for science?
Here's an example (or shameless plug): I use GitHub to share research data: https://github.com/btrettel/pipe-jet-breakup-data
There's code in that repository too. The code merges a variety of different data sources and performs some analyses. Nothing particularly fancy, and the code is probably not much better than average as far as academic code goes (which is not good), but I'm slowly adding tests and improving the code otherwise.