Gist.GitHub

Gist.GitHub is an excellent way of sharing code snippets. Google Sites is a great tool to build web sites, including documentation web sites. However, Gists cannot be directly included in Google Sites pages, as script tags are not allowed. The solution? Well, we just have to wrap the code to embed a gist in a web page in a Google Gadget. So, to embed a gist in your Google Site page, you just have to:
  1. Insert a gadged by URL, specifying the Gist.GitHub gadget URL.
  2. Set the "Gist #" property to the desired gist number.
  3. Adjust the title, height, and other properties as convenient. The gadget is supposed to adjust its height automatically, but it does not work correctly yet. 
As an example, here is the gist containing the gadget source code:

Gist.GitHub Gadget Source Code




Č
ċ
ď
gist-github-gadget.xml
(1k)
Andres Rodriguez,
Nov 23, 2010 12:34 AM