Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 15, 2026 16:46
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@mat
mat / Readme.markdown
Last active February 15, 2026 16:44
apple-app-site-association —with examples

“apple-app-site-association” file

One file for each domain, both www.example.com and example.com need separate files:

{
    "applinks": {
        "apps": [],
        "details": {
 "9JA89QQLNQ.com.apple.wwdc": {

Router 路由器

tags: Technology Communication

簡介

工作在 ==網路層(第3層)== 的網路器材,可以交換不同網段的封包、決定封包的傳送方向及路徑,也有人將市售的IP分享器稱作Router。具有轉送(Forwarding)繞送(Routing) 的功能。

  • 轉送: 在==路由器本身==進行的動作,將封包從輸入介面轉送到適當的輸出介面。
  • 繞送: ==整體的網路程序==,決定封包從來源端到目的端的路徑。

轉送表 (forwarding table)

含有IP位址的址首(prefix)與連結介面的對應表,如下所示:

@nicolasdao
nicolasdao / open_source_licenses.md
Last active February 15, 2026 16:39
What you need to know to choose an open source license.