Skip to content

Instantly share code, notes, and snippets.

@gnip
gnip / Twitter Sample Payload with Geo Info - JSON format.js
Created January 4, 2011 00:55
Twitter Sample Payload with Geo Info - JSON format
{
"coordinates": {
"coordinates": [
-105.2746654,
40.0191219
],
"type": "Point"
},
"created_at": "Mon Jan 03 17:48:08 +0000 2011",
"favorited": false,
<item xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<pubDate>Tue, 27 Jul 2010 01:29:23 -0700</pubDate>
<title>http://www.explosm.net/db/files/Comics/Rob/resume2.png</title>
<guid isPermaLink="true">http://www.stumbleupon.com/url/www.explosm.net/db/files/Comics/Rob/resume2.png</guid>
<link>http://www.stumbleupon.com/to/6cv0IJ/www.explosm.net/db/files/Comics/Rob/resume2.png/t:4c50b402ce0a9;src:favorites</link>
<description>
<a href="http://www.stumbleupon.com/to/6cv0IJ/www.explosm.net/db/files/Comics/Rob/resume2.png/t:4c50b402ce0a9;src:favorites"><img src="http://cdn.stumble-upon.com/images/nomthumb.png"/></a><br/>
<a href="http://www.stumbleupon.com/url/www.explosm.net/db/files/Comics/Rob/resume2.png">28 reviews</a>
</description>
<comments>http://www
@gnip
gnip / Twitter (json format).js
Created January 4, 2011 00:49
Twitter Sample Payload, JSON format
{
"coordinates": null,
"created_at": "Thu Oct 21 16:02:46 +0000 2010",
"favorited": false,
"truncated": false,
"id_str": "28039652140",
"entities": {
"urls": [
{
"expanded_url": null,
@gnip
gnip / Twitter (JSON Activity Streams format).js
Created January 4, 2011 00:53
Twitter Sample Payload in JSON Activity Streams format
{
"verb": "post",
"postedTime": "2010-10-21T16:02:46+00:00",
"body": "what we've been up to at @gnip -- delivering data to happy customers http://gnip.com/success_stories",
"actor": {
"location": {
"displayName": "Boulder, CO",
"objectType": "place"
},
"postedTime": "2008-10-24T23:22:09+00:00",
@gnip
gnip / Twitter Premium Sample Payload with Geo Info - JSON Activity Streams format.js
Created January 3, 2011 21:16
This is a sample payload for Gnip's premium feeds from Twitter in JSON Activity Streams format.
{
"verb": "post",
"location": {
"country_code": "United States",
"displayName": "Downtown, Boulder",
"objectType": "place",
"geo": {
"coordinates": [
[
[
#!/usr/bin/env bash
#
# Deploy SSH Wrapper
# App: <%= @id %>
#
# Rendered by Chef - local changes will be replaced
/usr/bin/env ssh -o "StrictHostKeyChecking=no" -i "/opt/my_app/id_deploy" $1 $2
@gnip
gnip / FriendFeed Keyword Feed - Activity Streams sample.xml
Created May 20, 2011 19:19
FriendFeed Keyword Feed - Activity Streams sample
<entry xmlns:gnip="http://www.gnip.com/schemas/2010" xmlns="http://www.w3.org/2005/Atom">
<id>e/d36cfa627b3f37030cd694a387193435</id>
<published>2011-05-20T19:17:30Z</published>
<updated>2011-05-20T19:17:30Z</updated>
<title>Howard Rheingold posted an note on Twitter (via FriendFeed)</title>
<category term="NotePosted" label="Note Posted"/>
<link rel="alternate" type="text/html" href="http://friendfeed.com/howardrheingold/d36cfa62/planning-summer-rheingold-u-course-on"/>
<source>
<link rel="self" type="text/xml" href="http://friendfeed-api.com/v2/search?q=summer&format=xml"/>
<title>FriendFeed - Keyword - Search - summer</title>
@gnip
gnip / FriendFeed User Feed - Activity Streams format sample.xml
Created May 20, 2011 19:26
FriendFeed User Feed - Activity Streams format sample
<entry xmlns:gnip="http://www.gnip.com/schemas/2010" xmlns="http://www.w3.org/2005/Atom">
<id>e/d36cfa627b3f37030cd694a387193435</id>
<published>2011-05-20T19:17:30Z</published>
<updated>2011-05-20T19:17:30Z</updated>
<title>Howard Rheingold posted an note on Twitter (via FriendFeed)</title>
<category term="NotePosted" label="Note Posted"/>
<link rel="alternate" type="text/html" href="http://friendfeed.com/howardrheingold/d36cfa62/planning-summer-rheingold-u-course-on"/>
<source>
<link rel="self" type="text/xml" href="http://friendfeed-api.com/v2/feed/howardrheingold?format=xml"/>
<title>FriendFeed - Actor - Posts - howardrheingold</title>
@gnip
gnip / Newsgator firehose - original format.xml
Created May 19, 2011 21:04
Newsgator firehose - original format sample
<item xmlns:ng="http://newsgator.com/schema/extensions" ng:state="new">
<title>Johnson loves facing the Fish</title>
<link>http://feeds.cbssports.com/click.phdo?i=fa7c9bd31643cda09021d6f785951170</link>
<description>MLB.com reports that not a single player in the major leagues has a better track record against the Marlins than Cubs outfielder <a class="playerLink" href="http://www.cbssports.com/mlb/players/playerpage/225381/reed-johnson">Reed Johnson</a>. He was batting .410 in his career against Florida entering Wednesday's series opener in Miami, and got the first crack at a pinch-hit as a result. He entered the game with four doubles, a triple and a home run with five RBI in 14 games against the Marlins and he added to the numbers in his only chance to. "I think the fields with short grass always play a little to my advantage," Johnson said. "You hit line drives and a lot of balls on the ground, and they can squeeze through the infield. Our park, when the grass gets long in the summer, it can be k
<entry xmlns:mood="http://activitystrea.ms/context/" xmlns:geo="http://www.georss.org/georss" xmlns="http://www.w3.org/2005/Atom" xmlns:re="http://purl.org/atompub/rank/1.0" xmlns:msp="http://activities.myspace.com/schema/1.0/" xmlns:sx="http://feedsync.org/2007/feedsync" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:poco="http://portablecontacts.net/spec/1.0">
<id>tag:myspace.com,2009:/activity/564168849/StatusMoodUpdate/353173297/353173297</id>
<title type="text">Ezmeralda Swenney has joined Myspace!</title>
<published>2011-03-11T23:41:37Z</published>
<updated>2011-03-11T23:41:37Z</updated>
<author>
<name>Ezmeralda Swenney</name>
<uri>http://www.myspace.com/564168849</uri>
</author>
<link rel="icon" type="image/gif" href="http://x.myspacecdn.com/modules/common/static/img/statusmoood.gif"/>