Skip to content

Instantly share code, notes, and snippets.

View kinlane's full-sized avatar

Kin Lane kinlane

View GitHub Profile
@kinlane
kinlane / oEmbed URL Example
Created April 6, 2011 05:24
An example Flickr oEmbed API example.
http://www.flickr.com/services/oembed/?url=http%3A//www.flickr.com/photos/bees/2341623661/
@kinlane
kinlane / oEmbed Return Example
Created April 6, 2011 05:29
This is an example Flickr oEmbed return example.
{
"version": "1.0",
"type": "photo",
"width": 240,
"height": 160,
"title": "ZB8T0193",
"url": "http://farm4.static.flickr.com/3123/2341623661_7c99f48bbf_m.jpg",
"author_name": "Bees",
"author_url": "http://www.flickr.com/photos/bees/",
"provider_name": "Flickr",
@kinlane
kinlane / Archive Twitter Profile Spreadsheet
Created April 11, 2011 05:54
This is a Google Docs Spreadsheet that is a template for pulling your daily tweets and archiving them.
https://spreadsheets.google.com/ccc?key=0AncshzELR0ZHdDdoSWJKc0JtWjBYT0NpX0V6dlhzUUE&hl=en&authkey=CJr2ztYJ
@kinlane
kinlane / Convert Word and Powerpoint File to PDF with Google Docs API
Created April 16, 2011 03:48
This will convert Microsoft Word and Powerpoint files to PDF using the Google Docs Listing API.
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
@kinlane
kinlane / Business of APIs - XML
Created April 23, 2011 03:22
Business of APIs - XML
<contact>
<firstname>Kin</firstname>
<lastname>Lane</lastname>
<age>38</age>
<website>apievangelist.com</website>
<address>
<streetaddress>123 2nd Street</streetaddress>
<city>New York</city>
<state>NY</state>
<postalcode>10021</postalcode>
@kinlane
kinlane / Business of APIs - JSON
Created April 23, 2011 03:27
Business of APIs - JSON
{
"firstName": "Kin",
"lastName": "Lane",
"age": 38,
"address":
{
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": "10021"
@kinlane
kinlane / Shapeways Widget
Created May 4, 2011 14:19
Shapeways Widget
<iframe frameborder="0" src="http://www.shapeways.com/widget/include.php?fav=YOURSHOPNAME&style=light&rows=4&cols=1" style="border: 1px solid rgb(192, 192, 192); height: 620px; width: 168px;"> </iframe>
@kinlane
kinlane / Seevl API Request
Created May 27, 2011 20:18
Seevl API Request
marvin:~ alex$ curl http://seevl.net/entity/?name=beatles -H "Accept: application/json" -H "X_APP_ID: 1c55b80a" -H "X_APP_KEY:65e7fbe154e8cee6c1704a9358dd8939"
{
"results" : [ {
"uri" : "http://seevl.net/entity/pzkVnsbP#id",
"sid" : "pzkVnsbP",
"name" : "The Beatles",
"description" : "The Beatles were an English rock band, formed in Liverpool in 1960, and one of the most commercially successful and critically acclaimed acts in the history of popular music. From 1962, the group consisted of John Lennon (rhythm guitar, vocals), Paul McCartney (bass guitar, vocals), George Harrison (lead guitar, vocals ..."
}, {
"uri" : "http://seevl.net/entity/eGnmzTZS#id",
@kinlane
kinlane / gist:1066419
Created July 6, 2011 02:37
Facebook Like with Google Analytics
FB.Event.subscribe('edge.create', function(targetUrl) {
_gaq.push(['_trackSocial', 'facebook', 'like', targetUrl]);
});
@kinlane
kinlane / gist:1066428
Created July 6, 2011 02:43
Facebook Shares with Google Analytics
FB.Event.subscribe('message.send', function(targetUrl) {
_gaq.push(['_trackSocial', 'facebook', 'send', targetUrl]);
});