Skip to content

Instantly share code, notes, and snippets.

Get exchange rate as JSONP via YQL.
YQL Console: http://developer.yahoo.com/yql/console
Query (USD to SEK): select rate,name from csv where url='http://download.finance.yahoo.com/d/quotes?s=USDSEK%3DX&f=l1n' and columns='rate,name'
Example code:
<script type="text/javascript">
var noun_type_fooCommand = {
suggest: function( text, html ) {
var suggestions = [];
suggestions.push( CmdUtils.makeSugg('foo', 'foo', 'foo') );
suggestions.push( CmdUtils.makeSugg('bar', 'bar', 'bar') );
suggestions.push( CmdUtils.makeSugg('baz', 'baz', 'baz') );
@erikvold
erikvold / twicl
Created November 13, 2009 04:32 — forked from leahneukirchen/twicl
#!/usr/bin/env ruby
# -*- ruby -*-
# twitter command line client
# That's What I Call Lame
# 09nov2008 +chris+
require 'json'
require 'open-uri'
// ==UserScript==
// @name Diff for gist.github
// @namespace http://userscripts.org/users/40991
// @include http://gist.github.com/*
// @include https://gist.github.com/*
// @require http://github.com/cho45/jsdeferred/raw/986ebd69231919f0f3a261d8c33ae913e4b4dca8/jsdeferred.userscript.js
// @require http://gist.github.com/105908.txt
// ==/UserScript==
(function() {
@erikvold
erikvold / Userscript_commands.ubiq.js
Created July 7, 2009 08:08 — forked from esquifit/Userscript_commands.ubiq.js
Greasemonkey Ubiquity Command
var noun_type_gmCommand = {
_name: "GM command name",
// Returns all GM commands available for the current page.
getCommands: function(){
var commands= new Array();
var menuitems = jQuery(context.chromeWindow.document).find('#userscript-commands-sb > menupopup > menuitem').get();
for (var i=0; i<menuitems.length; i++){
var cmd = menuitems[i];