Whenever I wanted to share a piece of code with someone, I use GitHub’s Gists feature. It works great and offers embed options as well! Since I had been learning how to code Nodejs CLI apps in the past few days, I had been creating more gists than ever.
I realised it was cumbersome to open GitHub website to create the gist each time. I consider creating a CLI app as a challenge to address that problem, but as expected, there is already one!
It works great for my purpose and this gem is installable in various methods. Being a Homebrew fan, I used
brew install gist to install, authenticated with GitHub and it’s good to go!
I can create new private gists with:
Paste content directly from clipboard:
Add a description as well to the gist:
The gem seems to offer a whole lot more. Check their GitHub readme section for details.