Skip to content

Instantly share code, notes, and snippets.

View sperand-io's full-sized avatar

Chris Sperandio sperand-io

  • Stripe
  • SF
View GitHub Profile
/**
* 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();
/**
* The node posix path parser implemented in ES2015
*
* regex from: https://github.com/nodejs/node/blob/master/lib/path.js#L406
*
* @param {String} path
* @return {Object} result
*
* let { name } = parse('/foo/bar/baz.html')
* // => name: baz
@sperand-io
sperand-io / README.md
Last active August 29, 2015 14:27 — forked from tmcw/README.md
Line Chart
@sperand-io
sperand-io / cookie.es6
Last active August 29, 2015 14:04 — forked from reinpk/cookie.js
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.