- Create files with lowercase kebab casing (e.g.,
utils-helper.ts). - Avoid uppercase letters, underscores, or camelCase in filenames.
- Write clean, readable, and maintainable code.
The good news is there are incredible free resources available for almost every aspect of AI.
| #!/bin/bash | |
| lsof -PiTCP -sTCP:LISTEN |
| :root { | |
| --accent-color: greenyellow; | |
| --bg-color: #242424; | |
| --fg-color: rgba(255, 255, 255, 0.87); | |
| font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; | |
| line-height: 1.5; | |
| font-weight: 400; |
| export function cleanClipboardText(e: ClipboardEvent){ | |
| const pastedText = e.clipboardData?.getData('text/plain'); | |
| return pastedText ? stripBom(pastedText) : '' | |
| } | |
| export function onPaste(e: ClipboardEvent){ | |
| e.preventDefault() | |
| const sel = window.getSelection() | |
| if(!sel) return; | |
| if (!sel.rangeCount) return; |
| #!/bin/zsh | |
| startTime=$(date) | |
| url="$1" | |
| if [ "$url" = "" ]; then | |
| echo "url can't be empty" | |
| echo "usage: download url" | |
| exit 1 | |
| fi |
| #!/bin/zsh | |
| url="$1" | |
| if [ "$url" -eq "" ]; then | |
| echo "url can't be empty" | |
| echo "usage: download url" | |
| exit 1 | |
| fi |
| /* | |
| Dark mode by UltimaDark, on firefox | |
| https://addons.mozilla.org/en-US/firefox/addon/ultimadark/ | |
| */ | |
| /* selection color */ |