Skip to content

Instantly share code, notes, and snippets.

View Nigh's full-sized avatar
⚧️
nya~

xianii Nigh

⚧️
nya~
View GitHub Profile
@Nigh
Nigh / 双键检测
Last active December 16, 2015 16:49
一个典型的检测双键键击的脚本思路。
n:=1
Return
~a::SetTimer, scan, -1
~d::SetTimer, scan, -1
scan:
x1 := GetKeyState("a" ,"P")
x2 := GetKeyState("d" ,"P")
@Nigh
Nigh / example.c
Created September 3, 2015 15:28
贴代码的正确姿势
int main() {
struct mylist {
int a;
struct mylist* next;
};
#define cons(x, y) (struct mylist[]){{x, y}}
struct mylist *list = cons(1, cons(2, cons(3, NULL)));
struct mylist *p = list;
while(p != 0) {
printf("%d\n", p->a);
https://press.one/p/address/v?s=64e8bd46d7721b62b0accac1c573a0f432aeb28ab8e96efca42d31a711da4b6e23b120a53ebb1cd64b7e145c1dff3a6498e6fdf761a374b8d821fe764b95e2e90&h=f4f5116d7d7bbd2ba3331e680e7ed77d19091986376bc7e0de380d702822ca2a&a=10f78158c77d61e2f6fe2fb95af09d3607398b25&f=P1&v=2
@Nigh
Nigh / Rally.geojson
Last active November 23, 2021 17:34
RallyPath_Test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Nigh
Nigh / Caddyfile
Created August 10, 2023 03:43
tl-rtc docker compose deploying debug
rtc.example.com {
reverse_proxy localhost:9092
}