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
.theme-dark { | |
--color-red-rgb: 247, 118, 142; | |
--color-orange-rgb: 255, 158, 100; | |
--color-yellow-rgb: 224, 175, 104; | |
--color-green-rgb: 158, 206, 106; | |
--color-cyan-rgb: 125, 207, 255; | |
--color-blue-rgb: 122, 162, 247; | |
--color-purple-rgb: 187, 154, 247; | |
--color-pink-rgb: 255, 117, 160; | |
--color-red: #f7768e; |
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
#!/usr/bin/env bash | |
# You can call this script like this: | |
# $ ./brightness-control.sh up | |
# $ ./brightness-control.sh down | |
# Script inspired by these wonderful people: | |
# https://github.com/dastorm/volume-notification-dunst/blob/master/volume.sh | |
# https://gist.github.com/sebastiencs/5d7227f388d93374cebdf72e783fbd6a |
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
<%* | |
// v1.1: Fixed the error when inserting the template, when a note for the previous day does not exist | |
const previousDay = moment(tp.file.title, "YYYY-MM-DD").subtract(1, "days").format("YYYY-MM-DD") | |
const nextDay = moment(tp.file.title, "YYYY-MM-DD").add(1, "days").format("YYYY-MM-DD") | |
tR += "# " + tp.file.title + "\n" | |
%> | |
<< [[<% previousDay %>]] | [[<% nextDay %>]] >> |
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
---<%* | |
// v1.3: Fix error if imdbRating is undefined | |
// Get page source | |
let url = await tp.system.clipboard() | |
url = url.replace(/\?.*$/g,"") // remove unnecessary part after '?' | |
let page = await tp.obsidian.request({url}) | |
let p = new DOMParser() | |
let doc = p.parseFromString(page, "text/html") | |
// Aliases for querySelector |
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
---<%* | |
let url = await tp.system.clipboard() | |
let page = await tp.obsidian.request({url}) | |
let p = new DOMParser() | |
let doc = p.parseFromString(page, "text/html") | |
let $ = s => doc.querySelector(s) | |
let $A = s => doc.querySelectorAll(s) | |
%> | |
title: "<% $("h1[id='bookTitle']").innerHTML.trim() %>" | |
authors: [<%* let authors = $A("span[itemprop=name]") |