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
#!/bin/bash | |
# Colors definitions | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color | |
BOLD=$(tput bold) | |
NORMAL=$(tput sgr0) | |
# Check if necessary applications are installed |
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
// double click on a card, or select a card and press e, to edit it | |
document.addEventListener('keyup', (e) => { | |
if (e.key === 'e' && document.activeElement?.classList.contains('project-card')) { | |
const buttons = document.activeElement.querySelectorAll('details button[role=menuitem]'); | |
for (const btn of buttons) { | |
if (btn.textContent === 'Edit note') btn.click(); | |
} | |
} | |
}); |
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
local fmt = string.format | |
-- Iterator that splits a string o a given delimiter | |
local function split(str, delim) | |
delim = delim or "%s" | |
return string.gmatch(str, fmt('[^%s]+', delim)) | |
end | |
-- Find the proper directory separator depending | |
-- on lua installation or OS. |