Skip to content

Instantly share code, notes, and snippets.

View darvid's full-sized avatar
πŸŒƒ
πŸ§‘β€πŸš€πŸ’ŠπŸš€

David Gidwani darvid

πŸŒƒ
πŸ§‘β€πŸš€πŸ’ŠπŸš€
View GitHub Profile
@danhollick
danhollick / tailwind-css-v4.mdc
Last active July 2, 2025 18:06
Cursor rules file for Tailwind CSS v4.0
// Update globs depending on your framework
---
name: tailwind_v4
description: Guide for using Tailwind CSS v4 instead of v3.x
globs: ["**/*.{js,ts,jsx,tsx,mdx,css}"]
tags:
- tailwind
- css
---
@aaronvg
aaronvg / .cursorrules
Created November 26, 2024 02:06
CursorRules for BAML
<Overview>
BAML (Basically, A Made-Up Language) is a domain-specific language for building LLM prompts as functions.
You can build an agentic workflow with BAML.
</Overview>
<Schema>
// Define output schemas using classes
class MyObject {
// Optional string fields use ?
// @description is optional, but if you include it, it goes after the field.
@clouedoc
clouedoc / Migrating from Arc to Zen Browser.md
Created September 20, 2024 08:57
Migrating from Arc to Zen Browser

A guide to leaving Arc for Zen Browser

The problem with Arc is that it doesn't allow exporting data (history, bookmarks) to a file natively.

One way to do this is to use a script but that only exports Bookmarks and not the history.

I don't really use the bookmarks feature that much; what I really liked about Arc was that it was really easy to navigate to somewhere I already visited.

So, if you're like me, follow this guide and you'll be able to import your browsing history into Zen browser!

@dvins
dvins / pnpm-peerdependency-override.md
Last active February 24, 2025 00:53
Overriding A Peer Dependency With PNPM

Overriding A Peer Dependency With PNPM

This guide explains how to override peer dependencies in a PNPM monorepo by using a custom hook. It provides a step-by-step solution to ensure consistent versioning across packages that rely on different versions of the same dependency.

Background

When working with a monorepo a challenges arises if you need to use multiple versions of the same package.

Nominally, this can be solved through package aliases and overides. However, a particularly sticky situation is when downstream packages rely peer dependencies of uptstream packages you need two or more versions of.

@swayducky
swayducky / cursor
Last active July 6, 2025 23:51
This fixes using "cursor" command in WSL
#!/usr/bin/env sh
# LATEST VERSION OF THIS SCRIPT: https://gist.github.com/swayducky/8ba8f2db156c7f445d562cdc12c0ddb4
# FORKED FROM: https://gist.github.com/ddwang/0046da801bcb29d241869d37ad719394
# 1) No longer has a hard-coded COMMIT
# 2) Auto-symlinks a "code" script to avoid wslCode.sh breaking
# HOW TO INSTALL:
# 1) Remove "c:\Users\<USER_NAME>\AppData\Local\Programs\cursor\resources\app\bin" from Windows Environment Settings
# 2) Modify this script with your Windows <USER_NAME> (NOT your WSL username) in the VSCODE_PATH variable
@a-churchill
a-churchill / README.md
Last active July 12, 2024 19:07
Documentation Search in Sanity

Documentation Search in Sanity

This Gist contains a sample query for searching text content in GROQ, Sanity's custom query language. We use something similar to this for Causal's documentation site. See more on our blog!

@adtac
adtac / Dockerfile
Last active May 16, 2025 08:58
#!/usr/bin/env docker run
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')"
# syntax = docker/dockerfile:1.4.0
FROM node:20
WORKDIR /root
RUN npm install sqlite3
@ErebusBat
ErebusBat / wezterm.lua
Last active March 20, 2024 19:21
WezTerm - Monaspace /w Ligatures and Comments
return {
font = wezterm.font({
-- family='Monaspace Neon',
family='Monaspace Argon',
-- family='Monaspace Xenon',
-- family='Monaspace Radon',
-- family='Monaspace Krypton',
weight='Regular',
harfbuzz_features={ 'calt', 'liga', 'dlig', 'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'ss07', 'ss08' },
}),
@kallebysantos
kallebysantos / App.tsx
Last active May 12, 2025 03:33
Running Local AI models with FastAPI and Vercel AI SDK
import "./App.css";
import { useEffect, useState } from "react";
import { useCompletion } from "ai/react";
function App() {
const [apiResponse, setApiResponse] = useState("");
useEffect(() => {
fetch("/api/reply?value=Hello from React App!")
.then((response) => response.json())
@veekaybee
veekaybee / normcore-llm.md
Last active July 8, 2025 00:04
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models