Elixir实现快速排序
摘要:
defmodule QuickSort do def sort([]), do: [] def sort([pivot|rest]), do: sort(Enum.filter(rest, fn(x) -> x < pivot end)) ++ [pivot] ++ sort(Enum.filter
在mojo中使用fastapi
摘要:
安装fastapi pip3 install fastapi uvicorn fastapi服务 新建mojo代码server.mojo from python import Python fn main(): try: # Python fastapi let fastapi = Python.i
springboot开启jdk虚拟线程
摘要:
在springboot3.2之后的版本可以简单的开启虚拟线程 在application.yml中配置 spring: threads: virtual: enabled: true 修改编译参数 <plugin> <groupId>org.apache.maven.plugins</groupId>
disruptor笔记
摘要:
# referrences [高性能队列——Disruptor - 美团技术团队 (meituan.com)](https://tech.meituan.com/2016/11/18/disruptor.html) [秒级达百万高并发框架-Disruptor (qq.com)](https://mp
gorm/gen 生成crdb
摘要:
``` GolandProjects\src\crdb_demo via 🐹 v1.20.5 ❯ cwgo model --db_type postgres --dsn "host=localhost user=root password=root dbname=t_214 port=26257
fnm
摘要:
```shell fnm env --use-on-de >> ~/.zshrc ``` ```shell export FNM_NODE_DIST_MIRROR="https://npm.taobao.org/mirrors/node/" ``` ```shell fnm install lts
docker部署potainer
摘要:
``` docker run -d --name portainer -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v /app/portainer_data:/data --restart always --privilege
rust源使用sparse
摘要:
[source.crates-io] # To use sparse index, change 'rsproxy' to 'rsproxy-sparse' replace-with = 'rsproxy-sparse' [source.rsproxy] registry = "https://rs
gin/hertz redis cache
摘要:
gin-cache/[hertz-cache](hertz-contrib/cache (github.com)) package main import ( "context" "log" "net/http" "time" "github.com/cloudwego/hertz/pkg/app"