Skip to content

Instantly share code, notes, and snippets.

@moyhig
Created November 12, 2012 13:08
Show Gist options
  • Save moyhig/4059307 to your computer and use it in GitHub Desktop.
Save moyhig/4059307 to your computer and use it in GitHub Desktop.
2012/11/12
<script type="text/javascript">
AJS.toInit(function ($) {
$.getJSON("https://api.github.com/gists/3985489?callback=?",
function(data) {
$('div#x1').append(JSON.stringify(data, null, 4));
$('div#x2').append(data['data']['files']['test.md']['content']);
});
});
</script>
<pre>
<div id="x1"/>
</pre>
<div id="x2"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment