Skip to content

Instantly share code, notes, and snippets.

@vid
Created June 17, 2014 11:57
Show Gist options
  • Save vid/aca4e9d85d0c3a7e8a72 to your computer and use it in GitHub Desktop.
Save vid/aca4e9d85d0c3a7e8a72 to your computer and use it in GitHub Desktop.
sample map

README is empty

0 Front Left /usr/share/alsa/samples/Front_Left.wav
1 Front Right /usr/share/alsa/samples/Front_Right.wav
{
"name": "sample map",
"state": "active",
"created": "2014-06-17T11:57:18.344Z",
"sources": [
{}
],
"profiles": {
"dataexplorer": "0.9"
},
"scripts": [
{
"id": "main.js",
"path": "main.js"
}
],
"views": [
{
"id": "grid",
"label": "Grid",
"type": "SlickGrid",
"state": {
"gridOptions": {
"editable": true,
"enabledAddRow": true,
"enabledDelRow": true,
"enableReOrderRow": true,
"autoEdit": false,
"enableCellNavigation": true
}
}
},
{
"id": "graph",
"label": "Graph",
"type": "Graph"
},
{
"id": "map",
"label": "Map",
"type": "Map"
}
],
"id": "dataexplorer-416668",
"resources": [
{
"backend": "csv",
"id": "sample_map",
"filename": "sample_map.csv",
"path": "current.csv",
"schema": {
"fields": [
{
"id": "0",
"label": "0",
"type": "string",
"format": null,
"is_derived": false
},
{
"id": "Front Left",
"label": "Front Left",
"type": "string",
"format": null,
"is_derived": false
},
{
"id": "/usr/share/alsa/samples/Front_Left.wav",
"label": "/usr/share/alsa/samples/Front_Left.wav",
"type": "string",
"format": null,
"is_derived": false
}
]
}
},
{
"backend": "csv",
"id": "sample_map-original",
"filename": "sample_map.csv",
"path": "original.csv",
"schema": {
"fields": [
{
"id": "0",
"label": "0",
"type": "string",
"format": null,
"is_derived": false
},
{
"id": "Front Left",
"label": "Front Left",
"type": "string",
"format": null,
"is_derived": false
},
{
"id": "/usr/share/alsa/samples/Front_Left.wav",
"label": "/usr/share/alsa/samples/Front_Left.wav",
"type": "string",
"format": null,
"is_derived": false
}
]
}
}
]
}
loadDataset("current", function (error, dataset) {
// error will be null unless there is an error
// dataset is a Recline memory store (http://reclinejs.com//docs/src/backend.memory.html).
console.log(dataset);
});
1 Front Right /usr/share/alsa/samples/Front_Right.wav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment