Just for the next time you have to do this, and even perhaps if you need to do this from multiple services, you can do even better:
- Use GoogleDrive, OneDrive, Dropbox or similar services.
- Use Pastebin for simpler scripts, as said in other responses.
- If you have access to a Git client in your machine, use Github.com / Gitlab.com services. If you don't, you can STILL use Gitlab, which provided an online editor for your files.
I recommend the third option, if you can, since you can always go back to previous versions of those files.