Skip to content

Instantly share code, notes, and snippets.

View jeffdgr8's full-sized avatar

Jeff Lockhart jeffdgr8

View GitHub Profile
@jeffdgr8
jeffdgr8 / CountDownLatch.kt
Last active July 14, 2022 23:57 — forked from konrad-kaminski/CountDownLatch.kt
CountDownLatch naive implementation (updated for kotlinx-coroutines 1.6.4)
package kotlinx.coroutines.experimental.sync
/*
* Copyright 2016-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@jeffdgr8
jeffdgr8 / SumByColor.js
Last active December 15, 2018 22:25 — forked from clupasq/subByColor.js
function getBackgroundColor(rangeSpecification) {
var sheet = SpreadsheetApp.getActiveSpreadsheet();
return sheet.getRange(rangeSpecification).getBackground();
}
function getForegroundColor(rangeSpecification) {
var sheet = SpreadsheetApp.getActiveSpreadsheet();
return sheet.getRange(rangeSpecification).getFontColor();
}