Created
January 10, 2012 15:24
-
-
Save sungmin-park/1589589 to your computer and use it in GitHub Desktop.
tumblr script for gister
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="http://shjs.sourceforge.net/css/sh_ide-eclipse.min.css" type="text/css"/> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script src="http://shjs.sourceforge.net/sh_main.min.js"></script> | |
<script src="http://shjs.sourceforge.net/lang/sh_html.min.js"></script> | |
<script src="http://shjs.sourceforge.net/lang/sh_cpp.min.js"></script> | |
<script src="http://shjs.sourceforge.net/lang/sh_c.min.js"></script> | |
<script src="http://shjs.sourceforge.net/lang/sh_python.min.js"></script> | |
<script src="http://shjs.sourceforge.net/lang/sh_ruby.min.js"></script> | |
<script src="http://shjs.sourceforge.net/lang/sh_javascript.min.js"></script> | |
<script src="https://raw.github.com/gist/1589565/1890acf64804527f6c323a7dff8ac4523c0a6e14/jquery.github.js"></script> | |
<script src="https://raw.github.com/gist/1589572/4937e05d28b9747455682c9265d11eb37a9bdb3e/jquery.shjs.js"></script> | |
<script> | |
$(function() { | |
$('a').gist(function(data) { | |
var $div = $('<div class="gist">'); | |
$.each(data.files, function() { | |
$div.shjs(this.content, this.language); | |
}); | |
return $('a[href="' + data.html_url + '"]').after($div); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment