Skip to content

Instantly share code, notes, and snippets.

View prule's full-sized avatar

Paul Rule prule

View GitHub Profile
@jewelsea
jewelsea / DebtCollectionTable.java
Last active April 27, 2020 16:39
JavaFX TableView row highlighting sample using css lookup functions.
import javafx.application.Application;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.stage.Stage;
import javafx.util.Callback;
// demonstrates highlighting rows in a tableview based upon the data values in the rows.
public class DebtCollectionTable extends Application {
public static void main(String[] args) throws Exception { launch(args); }
@staltz
staltz / introrx.md
Last active August 19, 2026 18:30
The introduction to Reactive Programming you've been missing
@JakubPetriska
JakubPetriska / quotes.csv
Last active August 9, 2026 14:08
Motivational quotes
Author Quote
Thomas Edison Genius is one percent inspiration and ninety-nine percent perspiration.
Yogi Berra You can observe a lot just by watching.
Abraham Lincoln A house divided against itself cannot stand.
Johann Wolfgang von Goethe Difficulties increase the nearer we get to the goal.
Byron Pulsifer Fate is in your hands and no one elses
Lao Tzu Be the chief but never the lord.
Carl Sandburg Nothing happens unless first we dream.
Aristotle Well begun is half done.
Yogi Berra Life is a learning experience, only if you learn.
@samsch
samsch / stop-using-jwts.md
Last active August 20, 2026 04:23
Stop using JWTs

Stop using JWTs!

TLDR: JWTs should not be used for keeping your user logged in. They are not designed for this purpose, they are not secure, and there is a much better tool which is designed for it: regular cookie sessions.

If you've got a bit of time to watch a presentation on it, I highly recommend this talk: https://www.youtube.com/watch?v=pYeekwv3vC4 (Note that other topics are largely skimmed over, such as CSRF protection. You should learn about other topics from other sources. Also note that "valid" usecases for JWTs at the end of the video can also be easily handled by other, better, and more secure tools. Specifically, PASETO.)

A related topic: Don't use localStorage (or sessionStorage) for authentication credentials, including JWT tokens: https://www.rdegges.com/2018/please-stop-using-local-storage/

The reason to avoid JWTs comes down to a couple different points:

  • The JWT specification is specifically designed only for very short-live tokens (~5 minute or less). Sessions
@shahshrey
shahshrey / CLAUDE.md
Created June 10, 2026 06:44
Boris Cherny's Claude Code workflow as a drop-in CLAUDE.md (workflow orchestration, subagents, self-improvement loop, verification, autonomous bug fixing). Source: thread from @bcherny.

Workflow Orchestration

1. Plan Node Default

  • Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
  • If something goes sideways, STOP and re-plan immediately - don't keep pushing
  • Use plan mode for verification steps, not just building
  • Write detailed specs upfront to reduce ambiguity

2. Subagent Strategy

  • Use subagents liberally to keep main context window clean
@rayjohnson
rayjohnson / CLAUDE.md
Last active June 15, 2026 05:48
Claude Code: Reduce approval prompts with a global CLAUDE.md

Global Claude Code Instructions

Preferred Tools & Auto-Install via Homebrew

Before falling back to Python scripts or sed for file manipulation, check for and prefer these tools. If a preferred tool is not installed, suggest installing it via Homebrew before proceeding with an inferior alternative.

File Editing

  • Edit tool — always first choice for single precise edits