Skip to content

Instantly share code, notes, and snippets.

View jimpick's full-sized avatar
💭
Hi!

Jim Pick jimpick

💭
Hi!
View GitHub Profile
// This is a bookmarklet for use with TarPipe which works well with the iPhone.
// Replace YOUR_CODE_HERE with your API key. Copy the text starting with 'javascript:' to a new bookmark in your web browser. To put it on your iPhone, create a new Bookmark in Safari, and then sync your bookmarks to your iPhone using iTunes.
// Based on: http://webtopmania.blogspot.com/2008/05/how-to-send-posts-to-twitter-jaiku-and.html
javascript:(function(){k='YOUR_CODE_HERE';w='310';h='200';x='30';g='30';u='25';t='todo';s=document.title;if%20(!s)%20s=t;n=window.open('','Tarpipe%20bookmarklet','width='+w+',height='+h);n.focus();d=n.document;d.write('%3Cmeta name=viewport content="width=320"%3E');d.write('%3Cform%20action=%22http://rest.receptor.tarpipe.net:8000/?key='+k+'%22%20method=%22POST%22%20enctype=%22multipart/form-data%22%3E');d.write('Title%20%3Cinput%20type=%22text%22%20size=%22'+x+'%22%20name=%22title%22%20value=%22'+s+'%22%20maxlength=%22140%22/%3E%3Cbr/%3E');d.write('Tags%20%3Cinput%20type=%22text%22%20s
javascript:location.href='/api/service/touch?onsucceed='%20+%20encodeURIComponent(location.href)
Here's how to extract data out of a Google Doc spreadsheet.
Here's our victim...
http://spreadsheets.google.com/ccc?key=pUetVbUnXgLbDjatWZKjVAw
Note - If you are interested, you can sign up here: http://tr.im/gHHS
Now go to the Google OAuth Playground.
// Script to Generate Random Graphics for Moo Cards
// Example: http://www.flickr.com/photos/jpick/3335073434/
// Modified from Google example - same license as Top Draw (Google BSD-style)
var name = "Jim Pick";
//var fontName = "Data70SH-Regular";
var fontName = "Helvetica";
// Fill with desktop with Colored rect with same top left and bottom right colors
var db = new Rect(0, 0, 1040, 696);
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
<meta>
<author>Jim Pick</author>
<documentationURL>http://gist.github.com/gists/104273/</documentationURL>
</meta>
<bindings>
<select itemPath="" produces="XML" >
<urls>
<url env="all">http://spreadsheets.google.com/feeds/cells/pUetVbUnXgLbDjatWZKjVAw/1/private/values</url>
Here's an example of how I was able to use the rsp from Smart.app to run on a different
port at the same time. It would be nice if this ability was built into the GUI app, but
for now, I hacked it.
I made a directory for my app here:
/Users/jim/joyent/rsp/local-smartasks
I put the application source in a subdirectory called '127.0.0.1'. So the bootstrap.js is
at /Users/jim/joyent/rsp/local-smartasks/127.0.0.1/js/bootstrap.js
@jimpick
jimpick / index.html
Created June 1, 2011 19:09 — forked from mbostock/.block
Streamgraph
<html>
<head>
<title>Streamgraph</title>
<script type="text/javascript" src="http://vis.stanford.edu/protovis/protovis-r3.2.js"></script>
<script type="text/javascript" src="stream.js"></script>
<style type="text/css">
body {
margin: 0;
}
@jimpick
jimpick / index.html
Created June 1, 2011 19:12
Kaltura Test
<html>
<head>
<title>Kaltura Test</title>
</head>
<body>
<h1>Test</h1>
<!-- <object id="kaltura_player_1306955897" name="kaltura_player_1306955897" type="application/x-shockwave-flash" allowFullScreen="true" allowNetworking="all" allowScriptAccess="always" height="333" width="400" bgcolor="#000000" xmlns:dc="http://purl.org/dc/terms/" xmlns:media="http://search.yahoo.com/searchmonkey/media/" rel="media:video" resource="http://www.kaltura.com/index.php/kwidget/cache_st/1306955897/wid/_618322/uiconf_id/4289612/entry_id/0_89lwordd" data="http://www.kaltura.com/index.php/kwidget/cache_st/1306955897/wid/_618322/uiconf_id/4289612/entry_id/0_89lwordd"><param name="allowFullScreen" value="true" /><param name="allowNetworking" value="all" /><param name="allowScriptAccess" value="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="&" /><param name="movie" value="http://www.kaltura.com/index.php/kwidget/cache_st/1306955897/wid/_618322/uiconf_id/4289612/entry_id/0_89lwordd" /><a href="http:/
@jimpick
jimpick / gist:1053413
Created June 29, 2011 08:20
Google reponse to request to transfer purchased Android apps to a different email
Date: Wed, 29 Jun 2011 03:19:05 -0000
From: "Android Market Support" <[email protected]>
To: [email protected]
Subject: Re: [#826443746] Your question about Android Market
Hi there,
Thanks for writing in. I understand that you would like to transfer your
purchased apps from your Gmail account to your Google Apps account. At
this time, it's not possible to transfer apps from one account to another.
@jimpick
jimpick / README.md
Created December 25, 2011 08:06
Assert.js README English

Assert.js

Assert.js is a port of the Node.js standard assertion library for the browser. The original code and tests are from Node.js, and have been modified to be browser compatible.

For example, you can use it with Mocha to perform tests on both the server and client-side. Mocha does not supply it's own assertion library.

run the same tests on both the client-side and server-side