Skip to content

Instantly share code, notes, and snippets.

View jwithington's full-sized avatar
☺️
👍

Jim Withington jwithington

☺️
👍
View GitHub Profile
CODE SETTINGS SYNC UPLOAD SUMMARY
Version: 3.2.4
--------------------
Restarting Visual Studio Code may be required to apply color and file icon theme.
--------------------
Files Uploaded:
extensions.json > extensions.json
settings.json > settings.json
@jwithington
jwithington / newExporter.js
Created May 3, 2019 19:41
Cleaning it up more
// SpreadsheetApp.getActiveSpreadsheet().getSheets(); =>
const getSheets = [
{getName: 'tab1', getRange: {getValues: [['one', 'One'], ['two', 'Two']] } },
{getName: 'tab2', getRange: {getValues: [['a', 'A',], ['b', 'B']] } },
{getName: 'tab3', getRange: {getValues: [['1', '!'],['2', '@']] } },
{getName: 'tab4-skipit', getRange: {getValues: [['', '!'],['2', '@']] } },
{getName: 'tab5-skipit', getRange: {getValues: [['1', '!'],['', '']] } }
]
function joinWithTabName(accumulator, val) {
@jwithington
jwithington / columnsExportText.gs
Created April 28, 2019 20:17
Final (for now), filtering for all the things
function columnsExportText() {
//create main array to store data
var everything = [];
// get values from active sheet
var sheets = SpreadsheetApp.getActiveSpreadsheet().getSheets();
// loop over each tab/sheet
for (var j = 0; j < sheets.length ; j++ ) {
var collected = []; // array to collect each loop
@jwithington
jwithington / columnsExportText.gs
Last active April 27, 2019 01:07
Aaand we have tabs all exporting to same text file now (with some bugs to work out)
function columnsExportText() {
//create main array to store data
var everything = [];
// get values from active sheet
var sheets = SpreadsheetApp.getActiveSpreadsheet().getSheets();
// loop over each tab/sheet
for (var j = 0; j < sheets.length ; j++ ) {
var collected = []; // array to collect each loop
@jwithington
jwithington / columnsExportText.gs
Last active April 26, 2019 23:45
Same task, a bit cleaned up and further along
function columnsExportText() {
// get values from active sheet
var sheet = SpreadsheetApp.getActiveSheet();
var tabName = sheet.getName();
var range = sheet.getRange(2, 1, sheet.getLastRow() -1, 2);
var data = range.getValues();
//create new array to store data
var collected = [];
@jwithington
jwithington / columnsExportText.gs
Created April 24, 2019 21:32
Google App Script that takes info in columns and exports it to a text file
function columnsExportText() {
// get values from active sheet
var sheet = SpreadsheetApp.getActiveSheet();
var data = sheet.getDataRange().getValues();
//create new array to store data
var collected = [];
// loop through and add info to collection with format of Text : "Text"
for (var i = 0; i < data.length; i++) {
{
"git.ignoreMissingGitWarning": true,
"window.zoomLevel": 1,
"editor.tabSize": 2,
"workbench.colorTheme": "Cobalt2",
"workbench.colorCustomizations": {
"[Pink Cat Boo]": {
"titleBar.activeBackground": "#202330"
//"activityBar.foreground":
}