brew install gum
Use the multi-line editor to write a commit message:
git commit -m "$(gum write --width 50 --placeholder "Summary of changes")"
addMutationObserver(); | |
function addMutationObserver() { | |
const observer = new MutationObserver(function (mutations) { | |
mutations.forEach(function (mutation) { | |
mutation.target.querySelectorAll("ytd-grid-video-renderer").forEach(handleElement); | |
}); | |
}); | |
observer.observe(document.body, { subtree: true, childList: true }); | |
} |
brew install gum
Use the multi-line editor to write a commit message:
git commit -m "$(gum write --width 50 --placeholder "Summary of changes")"
// Menu: Genius Lyrics Search | |
let Genius = await npm('genius-lyrics-api') | |
let geniusUserToken = await env("GENIUS_AUTH_TOKEN") | |
import { getLyrics, searchSong } from 'genius-lyrics-api'; | |
let songTitle = await arg("Song Title") | |
let options = { |
// Menu: Genius Lyrics Search | |
let Genius = await npm('genius-lyrics-api') | |
let geniusUserToken = await env("GENIUS_AUTH_TOKEN") | |
import { getLyrics, searchSong } from 'genius-lyrics-api'; | |
let songTitle = await arg("Song Title") | |
let options = { |
let Jimp = await npm('jimp') | |
let width = await arg('New width in pixels') | |
let selectedFiles = await getSelectedFile(); | |
let filePaths = selectedFiles.split("\n"); | |
for (let filePath of filePaths) { | |
Jimp.read(filePath, (err, image) => { | |
if (err) throw err; |
body, td, input, textarea, select, div, span { | |
font-family: -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif !important; | |
} | |
.Nm .Nt { | |
border-left: 0px; | |
} | |
.aZ6::-webkit-scrollbar { | |
width: 0px; |
let { titleCase } = await npm("title-case"); | |
let selectedText = await getSelectedText(); | |
let value = titleCase(selectedText); | |
await setSelectedText(value); |
let { titleCase } = await npm("title-case"); | |
let { getSelectedText } = await kit("text"); | |
let selectedText = await getSelectedText(); | |
let value = titleCase(selectedText); | |
await setSelectedText(value); |
let notionToken = await env('NOTION_USER_TOKEN') | |
let databaseID = "3859b567fda3464ea5a69d5ccb56274b" | |
let {data} = await post( | |
`https://api.notion.com/v1/databases/${databaseID}/query`, | |
{ | |
"filter": | |
{ | |
"property": "Status", | |
"select": { |
let notionToken = await env('NOTION_USER_TOKEN') | |
let databaseID = "3859b567fda3464ea5a69d5ccb56274b" | |
let {data} = await post( | |
`https://api.notion.com/v1/databases/${databaseID}/query`, | |
{ | |
"filter": { | |
"and": [ | |
{ | |
"property": "Status", |