This file contains hidden or 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
[{ | |
"listing": { | |
"created_at": "2011-02-09T17:28:40Z", | |
"description": "Homemade Lemonade", | |
"id": 1, | |
"lat": 22.73, | |
"lng": -20.19, | |
"phone_number": null, | |
"photo_url": "http://example.com/photo.jpg", | |
"price": 100, |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<listings type="array"> | |
<listing> | |
<created-at type="datetime">2011-02-09T17:28:40Z</created-at> | |
<description>Homemade Lemonade</description> | |
<id type="integer">1</id> | |
<lat type="float">22.73</lat> | |
<lng type="float">-20.19</lng> | |
<photo-url>http://example.com/photo.jpg</photo-url> | |
<price type="integer">100</price> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<listing> | |
<created-at type="datetime">2011-03-09T17:28:40Z</created-at> | |
<description>Awesome thinger for sale</description> | |
<id type="integer">2</id> | |
<lat type="float">35.0</lat> | |
<lng type="float">40.0</lng> | |
<photo-url>http://example.com/photo.jpg</photo-url> | |
<price type="integer">10</price> | |
<status nil="true" /> |
This file contains hidden or 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
{ | |
"listing": { | |
"created_at": "2011-03-09T17:28:40Z", | |
"description": "Awesome thinger for sale", | |
"id": 2, | |
"lat": 35, | |
"lng": 40, | |
"phone_number": null, | |
"photo_url": "http://example.com/photo.jpg", | |
"price": 10, |
This file contains hidden or 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
{ | |
"listing": { | |
"created_at": "2011-03-10T03:38:15Z", | |
"description": "Awesome thinger for sale", | |
"id": 11, | |
"lat": 35, | |
"lng": 40, | |
"management_url": "b309554196ab5e431", | |
"phone_number": "+15558675309", | |
"photo_url": "http://example.com/photo.jpg", |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<listing> | |
<created-at type="datetime">2011-03-10T03:38:15Z</created-at> | |
<description>Awesome thinger for sale</description> | |
<id type="integer">11</id> | |
<lat type="float">35.0</lat> | |
<lng type="float">40.0</lng> | |
<management-url>b309554196ab5e431</management-url> | |
<phone-number>+15558675309</phone-number> | |
<photo-url>http://example.com/photo.jpg</photo-url> |
This file contains hidden or 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
{"flour":"2 cups", | |
"milk":"35 cups"} |
This file contains hidden or 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
<?php | |
header('Content-type: text/xml'); | |
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; | |
$message = strip_tags($_REQUEST['Body']); | |
$response = "Welcome to the Cost of Freedom. Please text your state abbreviation to get Voter ID requirements and info."; | |
//our spreadsheet's key | |
$key = "0Aoz1Ir-h-0g5dG00N1lDVG1COTFHellrc2o2bDhoeXc"; | |
//the public url |
This file contains hidden or 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 http = require('http'), | |
sys = require('sys'), | |
nodeStatic = require('node-static'); | |
var server = http.createServer(function(request, response) { | |
var file = new nodeStatic.Server('./public', { | |
cache: false | |
}); | |
request.addListener('end', function() { | |
file.serve(request, response); |
This file contains hidden or 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 http = require('http'), | |
sys = require('sys'), | |
nodeStatic = require('node-static'); | |
faye = require('faye'), | |
url = require('url'); | |
function LiveStats(options) { | |
if (! (this instanceof arguments.callee)) { | |
return new arguments.callee(arguments); |
OlderNewer