Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pulled from https://developers.google.com/fit/rest/v1/reference/activity-types on March 27, 2017 | |
{ | |
"9": "Aerobics", | |
"10": "Badminton", | |
"11": "Baseball", | |
"12": "Basketball", | |
"13": "Biathlon", | |
"1": "Biking", | |
"14": "Handbiking", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
name: "je", | |
icon: "http://www.csse.monash.edu.au/~jwb/favicon.ico", | |
author: { name: "Jeremy Gordon", email: "onejgordon@gmail.com"}, | |
description: "Lookup Japanese words (romaji) in English using Jim Breen's JDIC", | |
takes: {"lookup": noun_arb_text}, | |
preview: function( pblock, eword) { | |
var turl = "http://www.csse.monash.edu.au/~jwb/cgi-bin/wwwjdic.cgi?1MDJ" + eword.text; | |
CmdUtils.previewGet(pblock,turl,null,function(data){ | |
output = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
name: "ej", | |
icon: "http://www.csse.monash.edu.au/~jwb/favicon.ico", | |
takes: {"lookup": noun_arb_text}, | |
preview: function( pblock, eword) { | |
var turl = "http://www.csse.monash.edu.au/~jwb/cgi-bin/wwwjdic.cgi?1MDP" + eword.text; | |
CmdUtils.previewGet(pblock,turl,null,function(data){ | |
output = ""; | |
result = jQuery(data).find("label"); | |
nResults = result.size(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var noun_type_song_lookup = { | |
_name: "song", | |
suggest: function suggest( text, html, callback ) { | |
var url = "http://search.lyrics.astraweb.com/"; | |
var suggestions = [CmdUtils.makeSugg(text)]; | |
jQuery.get(url, {word: text}, function(data) { | |
results = jQuery(data).find("b > a"); | |
for ( i = 0; i < results.length && i < 9; i++ ) { | |
result = results.get(i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
noun_type_sfbus = new CmdUtils.NounType( "SFBus", ["F","J","KT","L","M","N","S","1","1AX","1BX","2","3","4","5","6","7","9","9AX","9BX","9X","10","12","14","14L","14X","16AX","16BX","17","18","19","20","21","22","23","24","26","27","28","28L","29","30","30X","31","31AX","31BX","33","35","36","37","38","38AX","38BX","38L","39","41","43","44","45","47","48","49","52","53","54","56","66","67","71","71L","74","76","80X","81X","82X","88","89","90","91","108","K OWL","L OWL","M OWL","N OWL","T OWL","59","60","61"]); | |
CmdUtils.CreateCommand({ | |
name: "muni", | |
icon: "http://www.nextmuni.com/favicon.ico", | |
homepage: "http://www.jeremyrgordon.com/2009/02/nextmuni-for-ubiquity.html", | |
author: { name: "Jeremy Gordon", email: "onejgordon@gmail.com"}, | |
description: "Lookup muni arrivals from nextmuni.com", | |
help: "Input line number and partial matches for cross streets, eg. 'muni 1 at Div and Cal'. Currently matches capitalized street names.", | |
takes: {"line": noun_type_sfbus}, |