Skip to content

Instantly share code, notes, and snippets.

/**
* 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();
@deathau
deathau / Readme.md
Last active August 24, 2023 05:38
Obsidian scss

Obsidian SASS theme switching tools

I was building up a small library of css snippets, and mixing and matching via copy-paste was getting tiresome.
So, I knocked myself up a little solution using https://sass-lang.com/
To use this solution, you need to follow the instructions on the website to install the SASS command line utility.

Instructions

For my purposes, I created a subfolder in my Obsidian vault called ./.themes where my obsidian.scss file lives. I also created a subfolder for mixins (./.themes/mixins) containing small snippets like "Andy Matuschak" mode and collapsing sidebars (and my preferred custom colours for my Base2Tone theme)

import pandas as pd
import urllib.request
from tqdm import tqdm
from multiprocessing.pool import ThreadPool
import os.path
#
# This gist downloads all series from TMDB. You can easily modify this to download all movies.
# It uses threads to parallelize downloads and speed up this process.
# Depends on python 3. Tested on anaconda.
/* vertical style of sidebar in custom.css */
.sidebar-item.content {
min-width: 33vw;
overflow-y: scroll;
}
.sidebar-item-list.scrollbar-spacing {
display: flex;
flex-direction: row;
padding-bottom: 0;
@taskylizard
taskylizard / fmhy.md
Last active June 3, 2024 12:08
/r/freemediaheckyeah, in one single file (view raw)
@Zachu
Zachu / custom.js
Created May 27, 2022 10:10
Logseq relative namespace links
// https://github.com/cannibalox/logseq-custom-files/blob/3a3c7248921145965054f0eaf06b03282053d440/custom.js
// common =================================================================
MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
const watchTarget = document.getElementById("app-container");
// throttle MutationObserver
// from https://stackoverflow.com/a/52868150
const throttle = (func, limit) => {
let inThrottle;
return (...args) => {
if (!inThrottle) {