| alias | tags | cssclass |
|---|---|---|
Main: [[Campaigns]] Related:
| # I'll be doing another one for Linux, but this one will give you | |
| # a pop up notification and sound alert (using the built-in sounds for macOS) | |
| # Requires https://github.com/caarlos0/timer to be installed | |
| # Mac setup for pomo | |
| alias work="timer 60m && terminal-notifier -message 'Pomodoro'\ | |
| -title 'Work Timer is up! Take a Break 😊'\ | |
| -appIcon '~/Pictures/pumpkin.png'\ | |
| -sound Crystal" |
| #!/usr/bin/env python3 | |
| from pathlib import Path | |
| from PIL import Image | |
| from rich.console import Console | |
| from rich.traceback import install | |
| # Add support for Rich traceback formatting | |
| install(show_locals=True) |
| # Huge thanks to Rythm for the original code | |
| # that I adapted for this script | |
| # Source: https://j.mp/2UPeDJh | |
| import os.path | |
| import datetime | |
| FILE_PATH = "/path/to/vault/directory/" | |
| TODAY = datetime.datetime.today() | |
| LAST_UPDATE = "{:%A %d %B, %Y at %H:%M}".format(TODAY) |
I hereby claim:
To claim this, I am signing this object:
| from pathlib import Path | |
| for file in Path(".").glob("*.1"): | |
| name, ext, _ = file.name.split(".") # There were no other .'s in the names | |
| file.rename(f"{name}.sld{ext}") | |
| # From https://dev.to/rpalo/automating-simple-things-with-python-is-awesome-3jlg |
| /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1311 ERR Invalid array length: RangeError: Invalid array length | |
| at /Users/pauljacobson/.vscode/extensions/yzhang.markdown-all-in-one-1.4.0/out/src/toc.js:68:21 | |
| at Generator.next (<anonymous>) | |
| at fulfilled (/Users/pauljacobson/.vscode/extensions/yzhang.markdown-all-in-one-1.4.0/out/src/toc.js:4:58) | |
| at <anonymous> | |
| /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1311 WARN Error: listener failed | |
| at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3419:135 | |
| at Object.g [as _notify] (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:149:807) | |
| at Object.enter (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:153:85) |
| <p>Table</p> | |
| <table> | |
| <colgroup> | |
| <col/> | |
| <col/> | |
| </colgroup> | |
| <tbody> | |
| <tr> |
| { | |
| "name": "css-node_imports", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.html", | |
| "scripts": { | |
| "build": "npm run-script clean && npm run-script css && npm run-script files && npm run-script js", | |
| "clean": "trash dist/**", | |
| "postclean": "mkdir dist/ && mkdir dist/assets/", | |
| "precss": "mkdir dist/assets/styles/", |