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 gist.github.com, 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.
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.
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 roughdraft.io 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 bl.ocks.org to serve the rendered version of that HTML web page as it should appear in the browser.
There are bandwidth constraints obviously but bl.ock.org 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. 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="https://gist.github.com/username/gist-id.js"></script>
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.
![Analytics](https://ga-beacon.appspot.com/UA-XXXXX-X/gist-id?pixel)
10. MANAGE GISTS FROM THE DESKTOP
0 comments:
Post a Comment