Skip to content

Instantly share code, notes, and snippets.

View rachitkinger's full-sized avatar
🎯
Focusing

Rachit Kinger rachitkinger

🎯
Focusing
  • Spotify
  • London, UK
View GitHub Profile
@rachitkinger
rachitkinger / gist:a067cdb4dc0ffd64edca20542352f796
Created January 24, 2018 16:35 — forked from roblg/gist:2400902
retrieving a basic auth-protected CSV with Google Spreadsheets and Google App Scripting
// this function assumes the CSV has no fields with commas,
// and strips out all the double quotes
function parseCsvResponse(csvString) {
var retArray = [];
var strLines = csvString.split(/\n/g);
var strLineLen = strLines.length;
for (var i = 0; i < strLineLen; i++) {
var line = strLines[i];
if (line != '') {