Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/perl -w
# See tiny.pl for a longer description. This script reads search terms from the# command-line and creates a playlist widget, which is then automatically
# posted to Posterous. There is one command line option '-l' which allows you
# to specify the limit to the number of songs returned (the max according to
# apidocs.tinysong.com is 32.)
require LWP::UserAgent;
require HTML::Parser;
use URI;
#!/usr/bin/perl -w
# Uses the Tinysong and Posterous APIs to embed a player for a song search.
# Requires a creds.txt file which contains exactly two lines, with the username # on the first line, and the password on the second in plaintext.
# by modifying the posterous query settings, you can post to your own
# whatever.posterous.com blog.
# This search takes a string from the command line which may contain any
# information pertaining to song title, artist name, or album title. Tinysong
# automatically finds the most popular song that corresponds to the search and
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="My Special Day"
description="Want to count down the days to your birthday? Count the days since you birth? Or afraid forgot you marriage anniversary? This little gadget may help you."
screenshot="http://kevinchu.googlepages.com/DayCounter_screenshoot.png"
thumbnail="http://kevinchu.googlepages.com/DayCounter.png"
author="Kevin Chu"
author_email="kevinchu@gmail.com"
author_location="Hong Kong"
height="80"
<extension name="Notey" description="Add a Music Notation Creator Gadget" thumbnailUrl="http://clef.cs.ubc.ca/salieri/nview/guido.gif">
<author name="Br. Francis Therese" email="wavesdev@gmail.com"/>
<menuHook location="toolbar" text="Add a Google Book Search" iconUrl="http://www.graphicsfactory.com/clip-art/image_files/tn_image/8/792778-tn_music.gif">
<insertGadget url="http://gist.github.com/raw/223090/5d7dfce05da0a2a7e3c96faa3eef28837ef867a2/musicGadget.xml"/>
</menuHook>
</extension>
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Music Notation Example" height="400" >
<Require feature="wave" />
<!-- <Require feature="dynamic-height"/> -->
</ModulePrefs>
<Content type="html">
<![CDATA[
<!-- <script src="http://clef.cs.ubc.ca/salieri/nview/javascript/NoteServer.js" language="JavaScript"></script> -->
<div id="content_div" ></div>
<Module>
<ModulePrefs title="My Google Book Search Library"
author="Guillaume P., Stavan P."
author_location="Mountain View, CA"
author_affiliation="Google, Inc."
author_email="booksgadget.feedback+library_gadget@gmail.com"
description="Search for and preview books all from the comfort of iGoogle.
Create a Library and receive personalized book recommendations. Review
books and help others to find amazing things to read."
screenshot="http://www.google.com/ig/modules/books/library_gadget.png"
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title = "Google Book Search" ><Require feature="dynamic-height" /></ModulePrefs>
<Content type="html"><![CDATA[
<head>
<script src="http://www.google.com/uds/api?file=uds.js&v=1.0" type="text/javascript"></script>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<link href="http://www.google.com/uds/css/gsearch.css" rel="stylesheet" type="text/css"/>
<script src="http://www.google.com/uds/solutions/bookbar/gsbookbar.js" type="text/javascript"></script>
<script src="http://books.google.com/books/previewlib.js"></script>
function createRequest() {
var result = null;
if (window.XMLHttpRequest) {
result = new XMLHttpRequest();
if (typeof xmlhttp.overrideMimeType != 'undefined') {
result.overrideMimeType('text/xml'); // Or anything else
}
}
else if (window.ActiveXObject) {
// MSIE
<extension name="Booky" description="Add a Google Book Search to your Wave" thumbnailUrl="http://iphoneoverdose.com/wp-content/uploads/2009/02/google_book_search.jpg">
<author name="Br. Francis Therese" email="wavesdev@gmail.com"/>
<menuHook location="toolbar" text="Add a Google Book Search" iconUrl="http://upload.wikimedia.org/wikipedia/commons/c/c5/MiniBook.png">
<insertGadget url="http://gist.github.com/raw/220863/e0c63c20dbe8e7ee7c4a6ad8a19b4b44ed63fdfb/GoogleBookSearch.xml"/>
</menuHook>
</extension>
<extension name="Booky" description="Add a Google Book Search to your Wave" thumbnailUrl="http://iphoneoverdose.com/wp-content/uploads/2009/02/google_book_search.jpg">
<author name="Br. Francis Therese" email="wavesdev@gmail.com"/>
<menuHook location="toolbar" text="Add a Google Book Search" iconUrl="http://upload.wikimedia.org/wikipedia/commons/c/c5/MiniBook.png">
<insertGadget url="http://gist.github.com/raw/220863/e0c63c20dbe8e7ee7c4a6ad8a19b4b44ed63fdfb/GoogleBookSearch.xml"/>
</menuHook>
</extension>