Skip to content

Instantly share code, notes, and snippets.

plugin 'rails_on_gae', :git => 'git://github.com/technohippy/rails_on_gae.git'
rake 'gae:init'
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Puni>
<Pressure>10.000000</Pressure>
<Dumping>0.985000</Dumping>
<RootWidth>2.000000</RootWidth>
<RootOffset>0.000000</RootOffset>
<TopMargin>0.000000</TopMargin>
 <LeftMargin>0.000000</LeftMargin>
<PressureRates size="31">
<Rate>1.000000</Rate>
ProtoCommand = Class.create();
ProtoCommand.all = $A();
ProtoCommand.resetAllStatus = function() {
ProtoCommand.all.each(function(cmd) {cmd.resetStatus();});
};
ProtoCommand.keys = {
f1:112, f2:113, f3:114, f4:115, f5:116,
f6:117, f7:118, f8:119, f9:120, f10:121,
left:37, up:38,right:39, down:40,
enter:13, esc:27,
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="My First Gadget" height="50">
</ModulePrefs>
<Content type="html">
<![CDATA[
<script>
function test() {
alert(gadgets.io.encodeValues({key1:"値1", key2:"値2"}));
var fps = gadgets.util.getFeatureParameters();
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="My Second Gadget" height="50" />
<Content>
<![CDATA[
<script>
function showValue() {
gadgets.io.makeRequest('http://www.google.com', function(req) {
var msg = '';
for (var k in req) {
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="My Second Gadget" height="500" />
<Content>
<![CDATA[
<div id="results" />
<style>
div.tweet {
list-style-type: none;
border: 1px green solid;
@technohippy
technohippy / wave gadget
Created December 12, 2009 06:43
complex sample
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Attendance Book Gadget" height="100">
<Require feature="wave" />
<Require feature="dynamic-height" />
</ModulePrefs>
<Content type="html">
<![CDATA[
<style>
div.corner, div.date, div.participant, div.choice {
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Wave Gadget Title" height="200">
<Require feature="wave" />
</ModulePrefs>
<Content type="html">
<![CDATA[
<style>
td {
width:50px;
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Wave Gadget Title" height="200">
<Require feature="wave" />
</ModulePrefs>
<Content type="html">
<![CDATA[
<style>
td { width:50px; }
td { height:50px; }
(let ((sum 0) (nums (string->list "123")))
(while (pair? nums)
(set! sum (+ sum (- (char->integer (pop! nums)) (char->integer #\0)))))
(print sum))