This file contains hidden or 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 python3 | |
| """ | |
| Add transparent padding to an icon for macOS Tahoe compatibility. | |
| macOS Tahoe automatically adds white borders to icons that extend to the edge. | |
| This script adds transparent padding around the icon to prevent this behavior. | |
| Usage: | |
| python3 add-icon-padding.py input.png output.png [--padding 12] |
This file contains hidden or 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
| # Scroll | |
| map <c-y> scrollUp | |
| map <c-e> scrollDown | |
| # Scroll more | |
| unmap u | |
| unmap d | |
| map <c-u> scrollPageUp | |
| map <c-d> scrollPageDown |
This file contains hidden or 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
| { | |
| "title": "Obsidian", | |
| "rules": [ | |
| { | |
| "description": "Send Escape twice on Escape", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "bundle_identifiers": [ |
This file contains hidden or 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/esm7/obsidian-vimrc-support | |
| nmap j gj | |
| nmap k gk | |
| nmap ; : | |
| set clipboard=unnamed | |
| " Enable Emacs-like mappings in Insert/Command Mode | |
| " It seems simple mappings doesn't work in 'imap' so some workaround is |
This file contains hidden or 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 { exists } from "jsr:@std/fs"; | |
| import { map, reduce } from "jsr:@core/iterutil"; | |
| const sourceUrl = | |
| "https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt"; | |
| const filename = "words_alpha.txt"; | |
| if (!(await exists(filename))) { | |
| const resp = await fetch(sourceUrl); | |
| await Deno.writeFile(filename, resp.body!); |
This file contains hidden or 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
| [exec] | |
| inherit-env-vars = true | |
| [exec.env-vars] | |
| XDG_CONFIG_HOME = '${HOME}/.config' | |
| #... | |
| alt-period = '''exec-and-forget | |
| aerospace layout floating \ |
This file contains hidden or 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 { walk } from "jsr:@std/fs/walk"; | |
| const version = "^4.0.0"; | |
| function migrate(text: string): string { | |
| text = text.replace( | |
| /import(\s+){(.*?)}(\s+)from(\s+)"jsr:@core\/unknownutil@\^?3.*?"/sg, | |
| `import$1{$2}$3from$4"jsr:@core/unknownutil@${version}"`, | |
| ); | |
| text = text.replace(/is\.RecordLike/g, "is.Record"); |
This file contains hidden or 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 sys | |
| import os | |
| import datetime | |
| import pyauto | |
| from keyhac import * | |
| def configure(keymap): | |
| # Setting with callable object (Advanced usage) |
This file contains hidden or 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
| javascript:(function() { | |
| const t = document.querySelector('.c-MainLayout_Content article div'); | |
| t.style.maxWidth = "none"; | |
| t.style.width = "99%"; | |
| }()) |
This file contains hidden or 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
| check() { | |
| # -z: True when the string length is 0 | |
| if [ -z $DUMMY ]; then | |
| echo '-z $DUMMY' | |
| fi | |
| if [ -z "$DUMMY" ]; then | |
| echo '-z "$DUMMY"' | |
| fi | |
| if [ -z "${DUMMY+xxx}" ]; then | |
| echo '-z "${DUMMY+xxx}"' |
NewerOlder