Happy Sharing Codes Using Gist

It is sooooo late until I discovered http://gist.github.com. This is a Software as a Service (SaaS) provided by Github to be a tool for sharing code snippets or plain texts. As you may be thought that there are several similar service such pastebin. But, Gist offered Github power of versioning system which you can manage your code snippets through change by change without worrying that your code being rewritten completely as Github always handles the backup. It is also mean that you can create your local codes repository on your desktop computer by cloning the git.

Let's take a look on the Gist's UI.

Gist_ui

  1. Pick a name for your source code. Please take a note that if you add the file extension such as .java / .txt. Gist will automatically highlight your snippet text to recognizable keywords of the programming language that you specified.
  2. Otherwise, you can do it manually as you pick your language here.
  3. Make your description about the snippet code. It can be anything you want.
  4. Write your snippet text here. Please take a note that indentation will not be formatted automatically to your snippet. You should specify yourself by adding appropriate space(s).
  5. This enables you to create batch snippets.
  6. You can choose to post the snippet as private Gist
  7. Otherwise, you can make it public

As you post your snippets, it will be given an ID to be noted so you can manage it any time. For extensive snippets management, you should claim the snippet you made using your Github's account.

If you use Posterous to blog as myself you should be happy because Posterous has been friend of Gist for quiet time. You may take a look what Gist would look like on my "updated" previous article: http://bruteforce.posterous.com/hello-world-3016

Comments (0)

Leave a comment...