This is a little service I made to quickly share AppleScript with just a URL. The service accepts any selected code from AppleScript Editor (which you can change to all applications if you need them) and puts the properly encoded URL in your clipboard for easy sharing.
To install this service simply download this file and double click to Install.
Here is the prompt you will get:
If you choose to Open with Automator first and see the code, this is what it will look like:
Here is an action shot:
And the resulting URL in the clipboard is this:
I would highly recommend combining a shortening service with this workflow, Use one like CloudApp so your resulting URL will look like this:
Here is some code from Alfred ProTips article for using CloudApp from Shell Scripts if you need help:
Read more about URL encoding at stackoverflow which was my source for this workflow.