Skip to content

Instantly share code, notes, and snippets.

View nicholaswmin's full-sized avatar
💭
I may be slow to respond.

Nicholas Kyriakides nicholaswmin

💭
I may be slow to respond.
  • Bitpaper UK, The Profs
  • 07:27 (UTC -01:00)
View GitHub Profile
@nicholaswmin
nicholaswmin / color-mac.md
Created January 12, 2026 02:17
HIG: Color

[Human Interface Guidelines: Color][hig-color]

  • Don't redefine semantic meaning: 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
@nicholaswmin
nicholaswmin / macos-colors.md
Last active January 11, 2026 23:26
macOS system color palette

[Human Interface Guidelines: Color][hig-color]

  • Don't redefine semantic meaning: 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
@nicholaswmin
nicholaswmin / es6.md
Last active January 6, 2026 02:21
styleguide for concise ES6+

concise es6

opinionated styleguide for modern & concise JS

[nicholaswmin][author]

node version: v24+

foundation

@nicholaswmin
nicholaswmin / zsh-guide.md
Last active July 25, 2025 04:57
user-centric zsh scripts

zsh style guide

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.

@nicholaswmin
nicholaswmin / vouch.zsh
Last active May 23, 2025 15:59
Creates and automatically trusts self-signed SSL on macOS
#!/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
@nicholaswmin
nicholaswmin / zed-extsync.zsh
Last active May 23, 2025 08:00
declaratively list all installed zed.dev extensions in settings.json
#!/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
#
@nicholaswmin
nicholaswmin / dit.sh
Created May 9, 2025 10:38
git-based dotfiles management
#!/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
@nicholaswmin
nicholaswmin / decimators.js
Created March 27, 2025 11:08
functional time-series downsampling algorithms
/* 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
@nicholaswmin
nicholaswmin / browzen.js
Last active March 7, 2025 16:39
update a chrome tab without losing focus; macos-only
/**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
@nicholaswmin
nicholaswmin / flow.spec.md
Last active February 17, 2025 11:10
flow documentation format for LLM-assisted refactoring

flow

format for flow documenation in [LLM][llm]-assisted refactoring

This spec is given to the LLM which in turn utilizes it to
produce documentation of [system flows][flow], each showing
[state transitions][state], [steps][step], and [side effects][effect].

These flow documents support: