Skip to content

Instantly share code, notes, and snippets.

View yuna0x0's full-sized avatar
🍥
:3

yuna0x0 yuna0x0

🍥
:3
View GitHub Profile
@m4n1ok
m4n1ok / rgbaToVec.js
Created April 25, 2018 11:57
Convert a rgba/rgb color to vec4. Convert vec4 color to rgba
const normalize = (min, max, value) => {
if (value < min) return min
else if (value > max) return max
else return value
}
const splitChannels = (color, split) => {
color = color.replace(split, '').replace(')', '').trim()
let channels = color.split(',')
@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active May 26, 2026 05:33
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@ctmakro
ctmakro / ipython_display.py
Last active April 15, 2024 03:22
Display numpy ndarray as Image in Jupyter/IPython notebook
# if input image is in range 0..1, please first multiply img by 255
# assume image is ndarray of shape [height, width, channels] where channels can be 1, 3 or 4
def imshow(img):
import cv2
import IPython
_,ret = cv2.imencode('.jpg', img)
i = IPython.display.Image(data=ret)
IPython.display.display(i)
@seiroise
seiroise / RGBSplit.shader
Last active May 4, 2022 06:56
RGB Separation Shader (Unity)
/*
RGB split shader
Built-inシェーダのvert_imgなどはここを参照のこと。
http://wiki.unity3d.com/index.php/Shader_Code
uvなどは頂点シェーダで計算したほうが軽くなりそう。
*/
Shader "Custom/RGBSplit" {
Properties {

中文下載點 <- 這是我自已隨便中文化的錯字可能很多,有些詞彙意思上也會有點不同,因為我都google翻譯,未來原版會有中文化。

英文下載點

osu!tournament.exe使用方式 (TeamVS)

前置設定

  1. 打開osu!tournament.exe。
  2. 按下視窗上的Options
  3. 輸入osu!api key、IRC帳號密碼,並按下儲存與連接,沒有問題就可以下一步了!
  • osu!api key可以點下旁邊的問號按鈕或這裡取得。

中文下載點 <- 這是我自已隨便中文化的錯字可能很多,有些詞彙意思上也會有點不同,因為我都google翻譯,未來原版會有中文化。

英文下載點

osu!tournament.exe使用方式

前置設定

  1. 打開osu!tournament.exe。
  2. 按下視窗上的Options
  3. 輸入osu!api key、IRC帳號密碼,並按下儲存與連接,沒有問題就可以下一步了!
  • osu!api key可以點下旁邊的問號按鈕或這裡取得。
@lovemecomputer
lovemecomputer / _powerline-shell-configs.md
Last active April 12, 2024 19:38
my powerline-shell config!

powerline config file locations (mac filepaths)

  • config.json in "\~/.config/powerline-shell/"
  • soft-era.py in "\~/.config/powerline-shell/themes/soft-era.py"
@lovemecomputer
lovemecomputer / fish-config-notes.md
Last active May 6, 2021 06:36
fish config notes
@weihanglo
weihanglo / rust-vs-go.md
Last active July 11, 2025 13:11
【譯】Rust vs. Go

【譯】Rust vs. Go

本文譯自 Julio Merino 2018 年七月撰寫的 Rust vs. Go 一文。Julio Merino 是 G 社僱員,在 G 社工作超過 8 年,無論工作內外,都接觸開發不少 Go 語言,並撰寫 [Rust 點評][rust-review]系列文,來聽聽他對 Rust 與 Go 的想法吧。

Thanks Julio Merino for this awesome article!


@samoshkin
samoshkin / postman_vs_insomnia_comparison.md
Created November 6, 2018 17:42
Comparison of API development environments: Postman vs Insomnia

Postman vs Insomnia comparison

Postman | API Development Environment https://www.getpostman.com
Insomnia REST Client - https://insomnia.rest/

Features                                        Insomnia Postman Notes
Create and send HTTP requests x x
Authorization header helpers x x Can create "Authorization" header for you for different authentication schemes: Basic, Digest, OAuth, Bearer Token, HAWK, AWS