Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Google siteにてGistのコード埋め込みスクリプトを表示するためのGoogle Gadgetスクリプト。
<?xml version="1.0"?>
<ModulePrefs title="Gist">
<Require feature="dynamic-height"/>
<UserPref name="id" display_name="Gist ID" required="true" default_value="10683373"/>
<UserPref name="font_size" display_name="Font size (px)" required="true" default_value="12"/>
<UserPref name="line_height" display_name="Line height (px)" required="true" default_value="16"/>
<Content type="html">
<style type="text/css">
body, td, div, span, p {
font-family: Consolas, "Liberation Mono", Courier, monospace;
font-size: __UP_font_size__px;
line-height: __UP_line_height__px;
.gist .gist-file .gist-data {
background-color: white !important;
.gist .gist-file .gist-data .line-numbers {
background-color: white !important;
<script src="//"></script>
<script src=""></script>
$(function() {
$('.gist-meta').children('a').attr('target', '_blank');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.