Skip to content

Instantly share code, notes, and snippets.

View brijr's full-sized avatar

Bridger Tower brijr

View GitHub Profile
@merthanmerter
merthanmerter / actions.ts
Last active August 9, 2025 11:04
Next Safe Actions & React Hook Form - Reusable form component
// actions.ts
export const addUpdateProject = privateActionClient
.metadata({ actionName: 'addUpdateProject', description: 'Add or update a project.' })
.schema(projectsInsertSchema)
.action(
async ({ parsedInput, ctx }) => {
const { id, ...rest } = parsedInput
const [{ insertId }] = await ctx.db
.insert(projects)
@bdsqqq
bdsqqq / vesper-dark.json
Last active October 29, 2025 18:45
Vesper theme for zed.dev
{
"$schema": "https://zed.dev/schema/themes/v0.1.0.json",
"name": "Vesper",
"author": "Rauno Freiberg",
"themes": [
{
"name": "Vesper",
"appearance": "dark",
"style": {
"border": "#101010",