Gist
Create a Gist
Go to
https://gist.github.com/
Enter the file name
Write the code
Create a secret gist or a public gist
Share the code with the embed link
Example