Skip to content

Instantly share code, notes, and snippets.

@fzdwx
fzdwx / tool-website.md
Last active April 3, 2024 13:41
🔧 Tool Website collections.
Rust 30 mins ██████████████████▉░░ 90.4%
justfile 3 mins ██░░░░░░░░░░░░░░░░░░░ 9.6%
@fzdwx
fzdwx / main.go
Created June 25, 2022 03:22
Sequential printing
package main
import (
"fmt"
"os"
)
func main() {
c1 := make(chan int, 1)
@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 /
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