This morning, I ran into this question on code-sharing options. Reading through the answers, I very much liked the (at this moment highest voted) very nice overview by Serg.
The question mentioned OP wanted to share his custom scripts, written for Ubuntu. We may therefore assume OP is looking for Ubuntu-related sharing options.
The answer by Serg was accordingly; at least http://paste.ubuntu.com/, https://launchpad.net, and http://askubuntu.com are specifically Ubuntu related, while the others can also be used for other purposes, but perfectly fit in, since they can also be used for Ubuntu-related code.
In the Help- section we find a.o.:
Questions that you may ask:
..........Development on Ubuntu.
In the section:
Questions that you should avoid:
I don't see specific information why this question should be off-topic, so my question:
Why do we consider this question off-topic?