It is super convenient to use Gist to share code snippets or examples with others. Fortunately, it is a click of a button to create a Gist from within PyCharm.
All you have to do is point to your program in PyCharm, right click and select “Create Gist” menu option. Give your GitHub login credentials (only for generating the token) or give the token, and your Gist is published in GitHub!