Some stats: - Total number of links: 23983
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
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.
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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(); |