Upload code to https://gist.github.com.

# To create a gist from any number of text files:
gist file.txt file2.txt

# To create a private gist with a description:
gist -p -d "A meaningful description" file.txt

# To read contents from STDIN and create a gist from it:
echo "hello world" | gist

# To list your public and private gists:
gist -l

# To use the id from the gist URL to modify or include a file:
gist -u GIST_ID file.txt