Skip to content

Instantly share code, notes, and snippets.

View joyrexus's full-sized avatar

J. Voigt joyrexus

View GitHub Profile

Boris Cherny’s 10 team-sourced tips for using Claude Code

See Boris’s post: these tips come from the Claude Code team, and there’s no single “right” setup—experiment and keep what works.

1) Do more in parallel

  • Run 3–5 Claude sessions at once, one per task.
  • The team’s preferred approach is git worktree so each session has its own isolated working directory.
  • Some folks also keep a dedicated “analysis” worktree for log reading / BigQuery-style investigation.

2) Start complex tasks in plan mode

@joyrexus
joyrexus / README.md
Last active May 4, 2026 11:41
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@joyrexus
joyrexus / README.md
Last active May 2, 2026 22:40 — forked from liamcurry/gist:2597326
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@joyrexus
joyrexus / skill-builder-guide.md
Last active April 24, 2026 09:03 — forked from liskl/The-Complete-Guide-to-Building-Skills-for-Claude.md
Complete guide to building Skills for Claude — covers fundamentals, planning, testing, distribution, patterns, and YAML frontmatter reference (converted from Anthropic's official PDF)
@joyrexus
joyrexus / README.md
Last active February 23, 2026 18:25 — forked from dergachev/GIF-Screencast-OSX.md
Create a GIF screencast

Convert a screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@joyrexus
joyrexus / README.md
Last active January 26, 2026 08:27
JavaScript array methods

JavaScript Array Methods

Excerpted from the D3 API docs.

Note esp. usage of the map, filter, and reduce iteration methods. For a nice intro to these methods, see Tom MacWright's talk Beyond the For Loop, and for quick guidance on when to use which iteration method, see this gist.

Mutation Methods

That modify the array:

@joyrexus
joyrexus / git.cheat
Created July 31, 2013 14:52
Git cheat sheet.
Setup
-----
git clone <repo>
clone the repository specified by <repo>; this is similar to "checkout" in
some other version control systems such as Subversion and CVS
Add colors to your ~/.gitconfig file:
[color]
@joyrexus
joyrexus / README.md
Last active September 29, 2025 05:43
Perl one-liners

Hi:

perl -e 'print "hello world!\n"'

A simple filter:

perl -ne 'print if /REGEX/'

Filter out blank lines (in place):

@joyrexus
joyrexus / README.md
Last active September 3, 2025 20:43
Greiner-Hormann algorithm

I've heard a number of people praise the Greiner-Hormann algorithm for clipping arbitrary polygons. They say it has a certain conceptual simplicity and elegance.

@jasondavies is utilizing Greiner-Hormann for D3's polygon clipping operations (2D and spherical). He recently gave a demo of boolean operations on polygons based on as-of-yet unreleased work here.

His earlier clipping demos can be found here and here.

@w8r has a nice, clean implementation of the algorithm for 2D clipping operations with no dependencies. He provides an adapter for clipping polygon regions defin

@joyrexus
joyrexus / README.md
Last active July 24, 2025 22:14
Leap websocket quick ref

Leap WebSocket Server

The Leap Motion service/daemon provides a WebSocket server listening to port 6347 on the localhost domain. The server provides tracking data in the form of JSON formated messages (i.e., time-stamped "frames" containing the tracking data at a given moment).

This gist demonstrates how to connect to the device's websocket stream. It pipes a user specified number offrames from the Leap's websocket stream to stdout or to a user specified filename.

See Protocol for communicating with leapd for more info and updates.