Skip to content

Instantly share code, notes, and snippets.

View kinlane's full-sized avatar

Kin Lane kinlane

View GitHub Profile
@kinlane
kinlane / gist:1066430
Created July 6, 2011 02:43
Tweets with Google Analytics
twttr.events.bind('tweet', function(event) {
if (event) {
var targetUrl;
if (event.target && event.target.nodeName == 'IFRAME') {
targetUrl = extractParamFromUri(event.target.src, 'url');
}
_gaq.push(['_trackSocial', 'twitter', 'tweet', targetUrl]);
}
);
@kinlane
kinlane / influence-api.json
Created July 29, 2011 20:56
Influence Explorer Text API - Response
{'entities': [{'entity_data': {'affiliated_organizations': None,
'bioguide_id': None,
'campaign_finance': {'contribution_total': 4710117.0,
'contributor_local_breakdown': {'in_state': 1634401.0,
'out_of_state': 589410.0},
'contributor_type_breakdown': {'individual': 2223811.0,
'pac': 2486306.0},
'recipient_breakdown': None,
'top_industries': [{'amount': 422085.0,
'id': 'b775d925e47f4648b1f1fd3e08625465',
@kinlane
kinlane / influence-api-request.url
Created July 29, 2011 20:57
Influence Explorer Text API - Request
http://inbox.influenceexplorer.com/contextualize?apikey=<your-key>&text=Last year, as [Rep. Darrell Issa] began recruiting for his committee, he selected Peter Warren, a lobbyist for the student loan industry. Warren had been president and executive vice president of government affairs of the Education Finance Council (EFC), a trade association for student loan companies and nonprofits, since 2004.
@kinlane
kinlane / oath-fb.url
Created August 6, 2011 02:46
Facebook OAuth Authorize
http://graph.facebook.com/oauth/authorize?
client_id=YOUR_APP_ID
&redirect_uri=YOUR_APP_URL
&response_type=token
&response_type=code_and_token
@kinlane
kinlane / oath-fb-change.url
Created August 6, 2011 02:57
Facebook OAuth Authorize - Changed
http://graph.facebook.com/oauth/authorize?
client_id=YOUR_APP_ID
&redirect_uri=YOUR_APP_URL
&response_type=token
&response_type=code%20token
@kinlane
kinlane / place.json
Created August 9, 2011 04:41
Factual Crosswalk API Response
{
"version": "3",
"status": "ok",
"response":
{
"data":
[
{
"url": "https://foursquare.com/venue/215159",
@kinlane
kinlane / doc-apis-flyer-order-status-GET.php
Created August 18, 2011 19:49
Doc APIs - Poster - Order Status
$userid = "[user id]";
$userkey = "[user key]";
$orderId = "00-0131-00071-30837";
$format = "json";
$environment = "Sandbox";
$URL = 'http://developer.mimeo.com/api/poster/orderstatus';
$QueryString = "?userid=" . $userid;
@kinlane
kinlane / flickr-network.xml
Created August 24, 2011 01:07
Flickr Real-Time Network
<rsp stat="ok">
<topics>
<topic name="contacts_photos" display_name="photos from your contacts" />
<topic name="contacts_faves" display_name="favorites from your contacts" />
<topic name="photos_of_contacts" display_name="photos of your contacts" />
<topic name="photos_of_me" display_name="photos of you" />
<topic name="my_photos" display_name="your photos" />
<topic name="my_faves" display_name="your favorites" />
</topics>
</rsp>
@kinlane
kinlane / flickr-commons.xml
Created August 24, 2011 01:08
Flickr Real-Time Commons
<rsp stat="ok">
<topics>
<topic name="commons" display_name="photos from the Flickr Commons" />
</topics>
</rsp>
@kinlane
kinlane / flickr-tags.xml
Created August 24, 2011 01:09
Flickr Real-Time Tags
<rsp stat="ok">
<topics>
<topic name="tags" display_name="photos with a tag (or tags)" />
</topics>
</rsp>