Skip to content

Instantly share code, notes, and snippets.

View lfod1997's full-sized avatar
✍️
Hand-coder, since 2015.

Oasin Lyu lfod1997

✍️
Hand-coder, since 2015.
  • Isle O'WOlves
View GitHub Profile
@chenshengzhi
chenshengzhi / git_ssh_proxy.md
Last active July 5, 2026 06:21
git ssh 代理设置

仅为 GitHub 设置代理

git 代理

设置 git config --global http.https://git.521000.best.proxy socks5://127.0.0.1:1086
设置完成后, ~/.gitconfig 文件中会增加以下条目:

[http "https://github.com"]
    proxy = socks5://127.0.0.1:1086
@983
983 / frag.glsl
Created November 14, 2015 09:39
hsv rgb conversion glsl shader
// because http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl is often down
vec3 rgb2hsv(vec3 c)
{
vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);
vec4 p = mix(vec4(c.bg, K.wz), vec4(c.gb, K.xy), step(c.b, c.g));
vec4 q = mix(vec4(p.xyw, c.r), vec4(c.r, p.yzx), step(p.x, c.r));
float d = q.x - min(q.w, q.y);
float e = 1.0e-10;
@staltz
staltz / introrx.md
Last active July 9, 2026 15:24
The introduction to Reactive Programming you've been missing