1.生成banner 2.text to log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
) | |
func main() { | |
c1 := make(chan int, 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rust 30 mins ██████████████████▉░░ 90.4% | |
justfile 3 mins ██░░░░░░░░░░░░░░░░░░░ 9.6% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" }) }, |

repo https://github.com/ohmyzsh/ohmyzsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
OlderNewer