Skip to content

Instantly share code, notes, and snippets.

View TOMOAKI12345's full-sized avatar

Tomoaki Sato TOMOAKI12345

View GitHub Profile
@TOMOAKI12345
TOMOAKI12345 / import_json_appsscript.js
Created March 4, 2017 12:06 — forked from chrislkeller/import_json_appsscript.js
Adds what amounts to an =ImportJSON() function to a Google spreadsheet... To use go to Tools --> Script Editor and add the script and save.
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@TOMOAKI12345
TOMOAKI12345 / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console