Skip to content

Instantly share code, notes, and snippets.

{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"includeCoAuthoredBy": false,
"permissions": {
"defaultMode": "bypassPermissions"
},
"model": "opusplan",
"statusLine": {
"type": "command",
"command": "/Users/steipete/.claude/statusline-worktree.js"
// this is a big array of 76 items I need to split into groups of 10
const hugeArray = Array.from({ length: 76 }, (_, i) => i);
function chunkify(array, chunkSize = 10) {
// make a new array
const chunks = Array.from(
// give it however many slots are needed - in our case 8
// 1-7 with 10 items, and 8th slot will have 6
{ length: Math.ceil(array.length / chunkSize) },
// this is a map function that will fill up our slots
@gapurov
gapurov / beep-workaroud.md
Last active March 23, 2021 13:44
Workaround for the Annoying Shortcut Beep Sound in VSCODE on MacOSX

The workaround given in the upstream Chromium issue is to setup key bindings at the OS-level that are just noops.

$ mkdir -p ~/Library/KeyBindings
$ cat > ~/Library/KeyBindings/DefaultKeyBinding.dict <<EOF
{
  "^@\UF701" = "noop";
  "^@\UF702" = "noop";
  "^@\UF703" = "noop";
}
@gapurov
gapurov / scrollTo.js
Created February 26, 2018 14:01 — forked from joshcanhelp/scrollTo.js
Animated scrollTo for specific element or top of page
//
// Smooth scroll-to inspired by:
// http://stackoverflow.com/a/24559613/728480
//
module.exports = function (scrollTo, scrollDuration) {
//
// Set a default for where we're scrolling to
//