Simulate Apple Pencil Pro input on a DOM element. Dispatches realistic Pointer, Mouse, and Touch events.
import { Autopen } from './index.js'[Human Interface Guidelines: Color][hig-color]
separator is not a label.Light/Dark map to Light|Dark mode while HiCon map to High Contrast + mode| Name | Light | Dark | HiCon Light | HiCon Dark |
|---|---|---|---|---|
systemBlue |
![][sw-007AFF] #007AFF |
![][sw-0A84FF] #0A84FF |
![][sw-0796E0] #0796E0 |
![][sw-409CFF] #409CFF |
systemGreen |
![][sw-28CD41] #28CD41 |
![][sw-32D74B] #32D74B |
![][sw-05AB1E] #05AB1E |
![][sw-31DE4B] #31DE4B |
systemIndigo |
![][sw-5856D6] #5856D6 |
![][sw-5E5CE6] #5E5CE6 |
![][sw-3634A3] #3634A3 |
![][sw-7D7AFF] #7D7AFF |
guidelines for concise [zsh][zsh-wiki] scripts
authors: [nicholaswmin][authorgh] - The [MIT][mit-lcns] License.
The keywords must/must not are to be interpreted as described in [RFC-2119][rfc-2119].
This formality is kept to a minimum because this document is meant to be LLM-parseable;
in other cases, your own unique context dictates their applicability.
| #!/usr/bin/env zsh | |
| autoload -U colors && colors | |
| # Check for correct shell | |
| if [ -z "$ZSH_VERSION" ]; then | |
| echo "Error: This script must be run with zsh, not sh or bash" | |
| echo "Please run with: zsh ./vouch.zsh install" | |
| exit 1 | |
| fi |
| #!/usr/bin/env zsh | |
| # ext-sync.zsh | |
| # | |
| # Authors: 2025 - nicholaswmin - MIT | |
| # | |
| # Declaratively lists all installed zed.dev extensions | |
| # in `settings.json` under `auto_install_extensions` | |
| # - Run once before backing up dotfiles. | |
| # - https://zed.dev/docs/configuring-zed#auto-install-extensions | |
| # |
| #!/usr/bin/env zsh | |
| # a git-based, no-tools dotfiles manager | |
| # authors: @nicholaswmin, The MIT License | |
| set -e | |
| # TODO: | |
| # - [ ] think about Spotlight filetype exclusion | |
| # - [ ] consider ohmyzsh | |
| # - [ ] automate git clone of work projects |
| /* Largest-Triangle-3-Buckets/MinMax in ES6 | |
| + unit tests, run by node --test foo.js | |
| - authors: Nicholas Kyriakides, @nicholasmin | |
| - license: MIT | |
| from: Downsampling Time Series for Visual Representation | |
| Sveinn Steinarsson | |
| University of Iceland, | |
| https://skemman.is/handle/1946/15343 | |
| Downsampling/Decimation Algorithms |
| /**l | |
| * Opens Chrome tab to a specified URL(or reload if exists) | |
| * without the usual ballbusting focus loss on every file change. | |
| * | |
| * Meant for: | |
| * `$ node --watch` or `$ nodemon app.js` | |
| * type of orkflows where you don't | |
| * want each file-save taking you to the browser. | |
| * | |
| * macOS only; no Linux/Windows |