Skip to content

Instantly share code, notes, and snippets.

View earth2marsh's full-sized avatar

Marsh Gardiner earth2marsh

View GitHub Profile
@earth2marsh
earth2marsh / x
Created February 14, 2009 21:09
Ubiquity Charts
var noun_type_chart = {
_name: "Chart Type",
chartTypes: [
"pie",
"pie3d",
"barh"
],
_chart : {
@earth2marsh
earth2marsh / Google Voice for Ubiquity
Created August 13, 2009 17:54
For calling phone numbers with Google Voice using Ubiquity for Firefox
/* canonical script has moved to http://scripts.earth2marsh.com/ubiquity/google_voice.js
*
* RECOMMEND: re-subscribing to the source here: http://scripts.earth2marsh.com/ubiquity/googlevoice
* <script type='text/javascript' src='http://scripts.earth2marsh.com/ubiquity/google_voice.js>
* </script> */
/*
* For calling Google Voice numbers
* Version 0.3.1
* See: http://earth2marsh.com/ubiquity/googlevoice
<?xml version="1.0" encoding="UTF-8" ?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
<meta>
<sampleQuery>select * from {table} where domain="YOURSUBDOMAIN" and email="user@domain.com" and apikey="YOURHIGHRISETOKEN"</sampleQuery>
</meta>
<bindings>
<select itemPath="" produces="XML">
<urls>
<url>https://{domain}.highrisehq.com/people/search.xml?criteria[email]={email}
</url>
$.getJSON("http://punch.gigabo.apigee.com/1/statuses/user_timeline.json?screen_name=lro_nasa&count=200&include_rts=false", function(data){alert("records: " + data.length);}
);
@earth2marsh
earth2marsh / apigee_facebook.md
Created October 25, 2010 03:08
Docs for Apigee's Heroku Add-on for Facebook

Apigee for Facebook

Apigee makes working with APIs better. Using Apigee to mediate Facebook API requests provides developers with analytics that provide API performance metrics, help understand usage, view requests and responses, and dig into errors using the debugger.

Add-on Installation

To use on Heroku, install the add-on with:

$ heroku addons:add apigee_facebook
@earth2marsh
earth2marsh / Heroku + Apigee - Local development set up.rb
Created November 5, 2010 12:54 — forked from empika/Heroku + Apigee - Local development set up.rb
How to set up your local development machine to use the Apigee Heroku or Facebook add-on
# How to set up your local development machine to use the Apigee Heroku or Facebook add-on
if ENV['APIGEE_TWITTER_API_ENDPOINT']
@@twitter_api = ENV['APIGEE_TWITTER_API_ENDPOINT']
else
# Get this value from Heroku.
# Once you have enabled the addon, boot up the 'heroku console' and run the following:
# puts ENV['APIGEE_TWITTER_API_ENDPOINT']
# (or replace with the configvar of your Apigee endpoint according to the relevant add-on, see their docs)
# this will spit out your correct api endpoint
@earth2marsh
earth2marsh / index.html
Created December 7, 2010 21:20
A WADL builder
<!DOCTYPE HTML>
<html xmlns:ng="http://angularjs.org">
<head>
<script type="text/javascript"
src="http://angularjs.org/ng/js/angular-debug.js" ng:autobind></script>
</head>
<body>
<script>
// parseUri 1.2.2
@earth2marsh
earth2marsh / WADL Builder
Created January 28, 2011 21:26
index.html
<!DOCTYPE HTML>
<html xmlns:ng="http://angularjs.org">
<head>
<script type="text/javascript"
src="http://angularjs.org/ng/js/angular-debug.js" ng:autobind></script>
</head>
<body>
<script>
// parseUri 1.2.2
@earth2marsh
earth2marsh / index.html
Created March 7, 2011 23:59
Example for passing a URL to an embedded Console
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<script type="text/javascript">
var addEvent = function(obj, type, fn) {
if (obj.addEventListener) {
obj.addEventListener(type, fn, false);
} else if (obj.attachEvent) {
/**
* This library depends on jQuery and the base64 jQuery plugin (http://plugins.jquery.com/project/base64)
*/
/**
* Accepts the endpoint (ex: "http://user.apigee.com/") and builds the API Caller object
*/
function ComApigeeApiCaller(endPoint) {
var theCall = this;
/**