Skip to content

Instantly share code, notes, and snippets.

View antoni-ostrowski's full-sized avatar

Antoni Ostrowski antoni-ostrowski

View GitHub Profile
@darcyparker
darcyparker / vimModeStateDiagram.svg
Last active May 1, 2026 20:34
Vim Modes Transition Diagram in SVG https://rawgithub.com/darcyparker/1886716/raw/eab57dfe784f016085251771d65a75a471ca22d4/vimModeStateDiagram.svg Note, most of the nodes in this graph have clickable hyperlinks to documentation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@t3dotgg
t3dotgg / try-catch.ts
Last active May 27, 2026 11:41
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};

Convex Ents Framework Guidelines

Introduction

Convex Ents is an ergonomic layer of the built-in Convex database API (ctx.db) that provides a more powerful and developer-friendly way to work with relational data. Ents (short for entities) allow you to explicitly declare relationships between documents, define default values, incorporate authorization rules, and much more.

⚠️ Note: Convex Ents is currently in maintenance mode. The Convex team will accept PRs and ensure it doesn't break, but there will not be active feature development.

Ent Schema Guidelines

Defining Your Schema