Skip to content

Instantly share code, notes, and snippets.

View limitcool's full-sized avatar

InitCool limitcool

View GitHub Profile
@ctlllll
ctlllll / longest_chinese_tokens_gpt4o.py
Created May 13, 2024 19:53
Longest Chinese tokens in gpt4o
import tiktoken
import langdetect
T = tiktoken.get_encoding("o200k_base")
length_dict = {}
for i in range(T.n_vocab):
try:
length_dict[i] = len(T.decode([i]))
except:
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active April 28, 2025 16:43
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@steven2358
steven2358 / ffmpeg.md
Last active April 25, 2025 15:57
FFmpeg cheat sheet