Skip to content

Instantly share code, notes, and snippets.

View 1Jack2's full-sized avatar

jack zhang 1Jack2

  • 16:04 (UTC +08:00)
View GitHub Profile
[tool.uv]
python-install-mirror = "https://python-standalone.org/mirror/astral-sh/python-build-standalone/"
[[tool.uv.index]]
name = "aliyun"
url = "https://mirrors.aliyun.com/pypi/simple/"
default = true
[[tool.uv.index]]
name = "tsinghua"
@1Jack2
1Jack2 / claude code config
Last active March 31, 2026 09:28
coding agent
{
"includeCoAuthoredBy": false,
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC":"1",
"alwaysThinkingEnabled": true
}
@1Jack2
1Jack2 / git: gitignore.md
Created September 26, 2025 01:56 — forked from jstnlvns/git: gitignore.md
a gitignore cheatsheet

Git sees every file in your working copy as one of three things:

  1. tracked - a file which has been previously staged or committed;
  2. untracked - a file which has not been staged or committed; or
  3. ignored - a file which Git has been explicitly told to ignore.

Ignored files are usually build artifacts and machine generated files that can be derived from your repository source or should otherwise not be committed. Some common examples are:

  • dependency caches, such as the contents of /node_modules or /packages
  • compiled code, such as .o, .pyc, and .class files
@1Jack2
1Jack2 / clojure-learning-list.md
Created December 11, 2022 14:54 — forked from ssrihari/clojure-learning-list.md
An opinionated list of excellent Clojure learning materials

An opinionated list of excellent Clojure learning materials

These resources (articles, books, and videos) are useful when you're starting to learn the language, or when you're learning a specific part of the language. This an opinionated list, no doubt. I've compiled this list from writing and teaching Clojure over the last 10 years.

  • 🔴 Mandatory (for both beginners and intermediates)
  • 🟩 For beginners
  • 🟨 For intermediates

Table of contents

  1. Getting into the language
@1Jack2
1Jack2 / latency.markdown
Created March 19, 2022 10:26 — forked from hellerbarde/latency.markdown
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs