If you want to submit Revit API code and macros for public review and use, check out:
Now, we just need someone to make an API add-in that hooks into BitBucket (somehow), and downloads and installs macros automatically into the Revit session 🙂 We would essentially have an unlimited store of easily accessible plugins in an open source repository … cool, huh?
Harry can give you write access.
If you want to learn more about it and code sharing generally, check out
What is version control, and why should you care? | Boost Your BIM – making Revit even better