Skip to content

Instantly share code, notes, and snippets.

View fzdwx's full-sized avatar
🧙‍♂️
STAY

Like fzdwx

🧙‍♂️
STAY
View GitHub Profile
@fzdwx
fzdwx / ctx.go
Created December 3, 2022 06:02
go ctx react impl
func resSearch(ctx context.Context, hostname string, rtype, class int) ([]dnsmessage.Resource, error) {
if ctx.Done() == nil {
return cgoResSearch(hostname, rtype, class)
}
type result struct {
err error
res []dnsmessage.Resource
}
package main
import (
"fmt"
"sync"
)
func main() {
for n := 0; n < 10; n++ {
var (
@fzdwx
fzdwx / filename
Last active December 30, 2023 14:13
filename
我草暗示大三大四
爱仕达受到
爱仕达受到
暗示大三大四的
/*
mysql
drop table if exists file;
create table file
(
id bigint primary key,
name varchar(200),
parent_id bigint,
is_dir bigint,
@fzdwx
fzdwx / README
Last active February 27, 2024 01:36
Hi
@fzdwx
fzdwx / battle-pane.js
Last active July 27, 2025 04:35
战斗面板
// ==UserScript==
// @name 猫猫放置-详细战斗日志面板
// @version v2.0.1
// @description 猫猫放置-详细战斗日志面板,点击上方中间的按钮展开或者收起
// @author fzdwx<[email protected]>,YuoHira
// @license MIT
// @match https://www.moyu-idle.com/*
// @match https://moyu-idle.com/*
// @grant none
// ==/UserScript==
@fzdwx
fzdwx / MoYuIdleHelperPlus.js
Last active July 26, 2025 15:35
MoYuIdleHelperPlus 修复
// ==UserScript==
// @name MoYuIdleHelperPlus
// @namespace https://tampermonkey.net/
// @version 2.7.0
// @description 摸鱼放置助手
// @author Mid & Firestream
// @license MIT
// @match https://www.moyu-idle.com/*
// @match https://moyu-idle.com/*
// @run-at document-start