Skip to content

Instantly share code, notes, and snippets.

@mapsam
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mapsam/9512308 to your computer and use it in GitHub Desktop.
Save mapsam/9512308 to your computer and use it in GitHub Desktop.
using tabletop.js for spreadsheet access
// tabletop.js is linked above
function init() {
var json = []; //prented this is a geojson and not just an array
Tabletop.init({
key: '0AkE-VGwUGzsSdHRjTmtNMXhONjYxQUxnOV9SajY4VkE',
callback: function(data, tabletop) {
var entries = [];
$.each(data, function(key, val) {
json.push(val.name, val.number);
console.log(val.name, val.number);
});
mapIt(json);
},
simpleSheet: true,
});
function mapIt(groups) {
var groupLength = groups.length;
for (mug=0; mug<groupLength; mug++) {
console.log(groups[mug]);
}
}
}
window.onLoad = init();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment