Skip to content

Instantly share code, notes, and snippets.

View tgroshon's full-sized avatar

Tommy Groshong tgroshon

View GitHub Profile
@tgroshon
tgroshon / README.md
Last active May 25, 2021 22:20 — forked from jcoglan/README.md
JavaScrpit benchmark: reduce, filter, map(), transducers, and for loops

benchmark: reduce(), filter(), map(), transducers and for loops

reduce():            10    x 832,441 ops/sec ±1.11% (87 runs sampled)
reduce():            100   x 56,307 ops/sec ±1.65% (87 runs sampled)
reduce():            1,000 x 1,158 ops/sec ±1.58% (88 runs sampled)

reduce() w/ mutate:  10    x 3,144,202 ops/sec ±1.27% (91 runs sampled)
reduce() w/ mutate:  100   x 556,441 ops/sec ±1.08% (94 runs sampled)
reduce() w/ mutate:  1,000 x 67,205 ops/sec ±0.40% (97 runs sampled)
@tgroshon
tgroshon / alacritty-tmux-vim_truecolor.md
Created October 8, 2023 18:01 — forked from andersevenrud/alacritty-tmux-vim_truecolor.md
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh