Skip to content

Instantly share code, notes, and snippets.

View ekzhang's full-sized avatar

Eric Zhang ekzhang

View GitHub Profile
@ekzhang
ekzhang / lspclass.py
Last active May 7, 2025 21:50
Simplified NotebookLsp class for Python — see usage example at the end
from __future__ import annotations
import asyncio
import json
import logging
import sys
from collections import deque
from dataclasses import dataclass
from pathlib import PurePosixPath
from typing import Any, Dict, Optional
@ekzhang
ekzhang / flux1-schnell-deconstructed.ipynb
Last active June 22, 2025 16:36
This was run in a Modal Notebook with Nvidia H100
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ekzhang
ekzhang / flamegraph-debug.svg
Created July 6, 2025 18:30
uv flamegraphs on macos
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ekzhang
ekzhang / .gitconfig
Created October 31, 2025 15:55
New ~/.gitconfig file for 2025
[user]
name = Eric Zhang
email = ekzhang1@gmail.com
[credential]
helper = store
[alias]
sw = switch
lg = log --color --graph --pretty=format:'%Cgreen%h%Creset%C(yellow)%d%Creset %s %C(dim)(%cr)%Creset %C(bold blue)%an%Creset' --abbrev-commit --all
lg-specific = log --color --graph --pretty=format:'%Cgreen%h%Creset%C(yellow)%d%Creset %s %C(dim)(%cr)%Creset %C(bold blue)%an%Creset' --abbrev-commit
pa = fetch --prune