Skip to main content

What You Can Do With Gists on Github?

Github is the popular website among software developers for sharing code. The site hosts over 12 million open-source projects — including games, books and even fonts — making Github the largest code repository on the Internet.

Github offers another useful service called Gist that developers often use to dump their code snippets but Gists aren’t just for geeks and coders — they offer something for everybody. If you have ever heard of web apps like Pastebin or Pastie, Gist are similar but more polished, they are free of advertising and loaded with more features.

Gist – They aren’t just for Geeks!

Here are some areas where you can utilize the Gist service. And you don’t have to be a geek for this.

1. Write Text Anonymously

You don’t have to create an account at Github to use Gists. Just go to, write any block of text in the space provided and create a Gist. You can choose to have a secret Gist that will not be visible to search engines but only to those who know the URL of that secret Gist.

2. Track Changes like a Wiki

When you edit the content of a Gist that has already been published, the previous versions of the Gist are also preserved. You can hit the Revisions tab to track edits made over time and there’s a built-in diff engine that will visually highlight the changes between any two versions of a gist. This can also be used for comparing text files.

Compare File Difference

3. Publish Gists in Rich Text

While gists only accept plain text, you can use the Markdown format to publish your text in rich HTML format. You can add lists, images (hosted externally) and even Tables that are not supported in the original Markdown specification. When you are done writing the text in Markdown, remember to save the file with a .md extension.

markdown gist

4. Gist as a Writing Platform

While there exist plenty of writing engines — from Blogger to Medium to Tumblr — you can also Github’s Gist service to quickly publish your writings on the web. Create a Gist either in plain text or markdown format and then use to publish that Gist as a standalone web page. It’s like integrating Readability with your Gists. And you can use emoji (smileys) too!

5. Host Single Page Websites on Gist

Bl.ocks is one of the most interesting applications built for Gists. You can write your HTML, CSS and JavaScript code in plain text, save the Gist as index.html and then use to serve the rendered version of that HTML web page as it should appear in the browser. For instance, here’s a live version of an HTML file that is hosted on

There are bandwidth constraints obviously but is still an excellent tool for hosting your HTML through Gists. The other alternative is Google Drive.

6. Maintain a Task List

You can use Gists to keep track of pending tasks (see example). The tasks are written in a special syntax in plain text but they are rendered as a list of check boxes.

- [x] Pick the flowers
- [ ] Call John 9303032332
- [x] Cancel cable subscription
- [ ] Book the flight tickets

You can check or uncheck the items and the source text will update automatically. If your Gist is public, anyone can see your to-do lists but only the gist owner can change the status of individual tasks.

7. Gist as a Web Clipper

The GistBox add-on for Google Chrome lets you save text snippets from web pages as public or private gists. You can even add labels, or #hashtags, to your gists making discovery easier.

8. Embed Gists in Web Pages

You can embed any Gist in your web pages with a line of JavaScript code. The embedded Gists maintain all the formatting and syntax highlighting and visitors to your website can easily clone (or fork) your Gist into their own Github accounts. There’s also a plugin and shortcode for embedding Gists in WordPress blogs.

<script src=";

9. Measure the Traffic

You can use Google Analytics to measure the traffic to your Gists. Since Github does not allow JavaScript code to run inside plain text Gists, we can use the GA Beacon to log visits in real-time to Gists.

Add this line to your Gists, save in Markdown format and it will add a transparent tracking image to your Gists.


10. Manage Gists from the Desktop

Gisto is free desktop application that lets you manage your Gists outside the browser. You can search Gists, edit the content of gists, view revisions over time and also share Gists. The app is available for Mac OSX, Windows and Linux. The other alternative is GistBox which is a web app.

This story, What You Can Do With Gists on Github?, was originally published at Digital Inspiration on 30/04/2014 under Internet

from Digital Inspiration Technology Blog


Popular posts from this blog

How to Get SMS Alerts for Gmail via Twitter

How do you get SMS notifications on your mobile phone for important emails in your Gmail? Google doesn’t support text notifications for their email service but Twitter does. If we can figure out a way to connect our Twitter and Gmail accounts, the Gmail notifications can arrive as text on our mobile via Twitter. Let me explain:Twitter allows you to follow any @user via a simple SMS. They provide short codes for all countries (see list) and if you text FOLLOW to this shortcode following by the  username, any tweets from that user will arrive in your phone as text notifications. For instance, if you are in the US, you can tweet FOLLOW labnol to 40404 to get my tweets as text messages. Similarly, users in India can text FOLLOW labnol to 9248948837 to get the tweets via SMS.The short code service of Twitter can act as a Gmail SMS notifier. You create a new Twitter account, set the privacy to private and this account will send a tweet when you get a new email in Gmail. Follow this account …

Instagram Story links get 15-25% swipe-through rates for brands, publishers

Instagram may arrived late as a traffic source for brands and publishers, but it’s already showing early signs of success, driving new visitors to their sites and even outperforming its parent company, Facebook.For years brands, publishers and other have tried to push people from the Facebook-owned photo-and-video-sharing app to their sites. Outside of ads and excepting a recent test with some retailers, Instagram didn’t offer much help to companies looking to use it to drive traffic. So they had to find workarounds. They put links in their Instagram bios. They scrawled short-code URLs onto their pictures. And they typed out links in their captions.Then last month Instagram finally introduced an official alternative to these hacky workarounds: the ability for verified profiles to insert links in their Instagram Stories.Almost a month after the launch, 15% to 25% of the people who see a link in an Instagram Story are swiping on it, according to a handful of brands and publishers that h…

Five great tools to improve PPC ads

Every digital marketer wants to reach the top position on the search engine results. However, if you’ve recently launched a new website or your niche is saturated, starting with paid search ads sounds like a good idea.Strategically created PPC campaigns can drive leads, sales or sign-ups to your websites. You know what? In fact, businesses earn an average of $8 for every dollar they spend on Google Ads.Optimizing PPC campaigns is not easy, but it’s very powerful if you do it properly. Just like SEO, it is essential to conduct extensive keyword research, optimize ad copy, and design high-converting landing pages.Fortunately, there are a lot of effective PPC tools that will help you analyze your competitors’ PPC strategies, figure out tricks in their campaigns, and improve your PPC campaigns.If you are ready to take an evolutionary leap in your PPC advertising, take a look at my list of five amazing tools to save you time, give you crucial insights, and raise money for your business.Fiv…