Skip to content

Instantly share code, notes, and snippets.

@fzdwx
fzdwx /
Last active December 29, 2021 08:04
https://github.com/geekxh/hello-algorithm/blob/master/%E5%8D%83%E6%9C%AC%E5%BC%80%E6%BA%90%E7%94%B5%E5%AD%90%E4%B9%A6/README.md#%E7%BC%96%E7%A8%8B%E8%89%BA%E6%9C%AF
@fzdwx
fzdwx / test.java
Last active June 25, 2022 03:08
Sequential printing
import java.util.concurrent.locks.LockSupport;
public class test {
public static void main(String[] args) {
final Thread t6 = new Thread(new T(6, null));
final Thread t5 = new Thread(new T(5, t6));
final Thread t4 = new Thread(new T(4, t5));
final Thread t3 = new Thread(new T(3, t4));
final Thread t2 = new Thread(new T(2, t3));
@fzdwx
fzdwx / main.go
Created June 25, 2022 03:22
Sequential printing
package main
import (
"fmt"
"os"
)
func main() {
c1 := make(chan int, 1)
Rust 30 mins ██████████████████▉░░ 90.4%
justfile 3 mins ██░░░░░░░░░░░░░░░░░░░ 9.6%
@fzdwx
fzdwx / tool-website.md
Last active April 3, 2024 13:41
🔧 Tool Website collections.
@fzdwx
fzdwx / .wezterm.lua
Last active April 22, 2023 08:59
my wezterm config
local wezterm = require("wezterm")
local act = wezterm.action
local keys = {
{ key = "=", mods = "CTRL", action = wezterm.action.DecreaseFontSize },
{ key = "=", mods = "CTRL|SHIFT", action = wezterm.action.IncreaseFontSize },
-- pane
-- 在一个tab内切分的子pane中移动
{ key = "LeftArrow", mods = "ALT", action = wezterm.action({ ActivatePaneDirection = "Left" }) },
{ key = "RightArrow", mods = "ALT", action = wezterm.action({ ActivatePaneDirection = "Right" }) },
@fzdwx
fzdwx / install.sh.md
Last active November 30, 2022 08:33
install script collect
@fzdwx
fzdwx / main.md
Last active December 14, 2022 06:41
timeline

2022

  1. 2022/10 胡锦涛被拖里大会现场
  2. 2022/11/25 多地学生发起游行
    • 起因是因为乌鲁木齐火灾烧死10人,9人受伤
Details

@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
}