Skip to content

Instantly share code, notes, and snippets.

View dret's full-sized avatar
🦎
API Whisperer

Erik Wilde dret

🦎
API Whisperer
View GitHub Profile
@dret
dret / gist:7921696
Created December 12, 2013 01:18
HyperCSV: Very Rough Sketch
http://example.com/people/{cell},#relcell(1),name CRLF
42,employee,Jeni CRLF
66,customer,Erik CRLF
@dret
dret / exercise.as
Created February 6, 2015 23:24
JSON-only AS
{
"published": "2015-01-06T15:04:55Z",
"startTime": "2015-01-05T17:33:40Z",
"endTime": "2015-01-05T19:08:39Z",
"status": "completed",
"actor": {
"objectType" : "person",
"id": "http://dret.net/netdret/",
"displayName": "Erik Wilde"
},
{ "JTT" : [
{ "track" : {
"title" : "Test Activity",
"desc" : "Simple test activity walking around the block with a heart rate monitor, stopping once, and marking one lap. Recorded with Garmin Fenix 3, uploaded to Garmin Connect, and exported as GPX and TCX. Both exports are crippled because they do not contain all data fields of the activity.",
"segments" : [
{ "data-fields" : ["latitude", "longitude", "elevation", "temperature", "HR" ] },
[
[ 47.407614681869745, 8.553115781396627, 451.79998779296875, "2015-11-13T12:57:24.000Z", 28.0, 76],
[ 47.40762138739228, 8.553108656778932, 451.0, "2015-11-13T12:57:25.000Z", 28.0, 76],
[ 47.407626835629344, 8.553094072267413, 450.0, "2015-11-13T12:57:26.000Z", 28.0, 76],
@dret
dret / gist:9b45600009dd2f6c6229
Created November 16, 2015 22:48
test.json (invalid)
{ "JTT" : [
{ "track" : {
"title" : "Test Activity",
"desc" : "Simple test activity walking around the block with a heart rate monitor, stopping once, and marking one lap. Recorded with Garmin Fenix 3, uploaded to Garmin Connect, and exported as GPX and TCX. Both exports are crippled because they do not contain all data fields of the activity.",
"segments" : [
{ "data-fields" : ["latitude", "longitude", "elevation", "temperature", "HR" ] },
[
[ 47.407659692689776, 8.553062472492456, 448.79998779296875, "2015-11-13T13:02:46.000Z", 26.0, 101],
[ 47.40764569491148, 8.553053420037031, 449.0, "2015-11-13T13:02:47.000Z", 26.0, 102],
[ 47.40763236768544, 8.553045960143209, 449.20001220703125, "2015-11-13T13:02:48.000Z", 26.0, 103],