--- (open termux x11 app) ---
--- (in termux) ---
termux-x11 :0 -listen tcp &
proot-distro login ubuntu
--- (in ubuntu) ---
export DISPLAY=127.0.0.1:0
startlxqt
This file contains hidden or 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
splprep会认为u=0和u=1是两个独立的点,因此如果用u来分割轮廓,会人为的构造出两个新的切割点 arc_0_start 和 arc_n_end | |
解决:1、采样用per=1首尾;2、 [u_start, u_end_1]%1 |
This file contains hidden or 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
表:超市分区; 行:具体商品 列:属性 | |
SQL指令: | |
查看 SELECT ... FROM ... | |
添加 INSERT INTO ... VALUES (...) | |
更新 UPDATA ... SET .. = .. WHERE name=.... 先查找索引再修改指定的 | |
删除 DELTE FROM ... WHERE name=.... | |
可以直接在go里面db.Query()调用, | |
grom有封装,不区分列名大小写 | |
使用gorm要准备好64位c编译器 |
This file contains hidden or 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
http方法:get, post, put, delete, patch | |
中间件:请求到达路由函数之前,经历的数据验证等管道 | |
洋葱模型,并非简单的先后顺序(执行完路由函数以后,还会按照注册顺序执行中间件c.next之后的部分,比如可以用来计时) | |
c.next放行 c.abort中止 c.JSON发消息 |
This file contains hidden or 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
go mod init 创建项目 | |
go run main.go 运行 | |
go mod tidy 整理依赖 | |
go mod download 安装依赖 | |
go build -o main.exe 编译 |
This file contains hidden or 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
model scope 上托管的 mcp,虽然 context 7很好用(context 7似乎会把我电脑代理封ip) | |
但是比如 fetch 还是用 vscode copilot 内置的方便些。 | |
不知道 fetch 的原理是什么。能不能用 fetch 来单纯的爬取,即使是和编程无关的内容。 | |
这样就比较类似于 fire crawl 了 | |
单词和中文 | |
中间空格方便选 | |
但是好麻烦 |
This file contains hidden or 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
用minimal mistakes更新了个人主页, | |
叽里咕噜劈里啪啦嗷嗷┗|`O′|┛ 嗷~~ | |
今天是第一次用gist 我打算在这里写日记和发癫 | |
之后打算用llm api做分类,搬到个人主页上。 | |
还挺有仪式感的 | |
文档名没写 | |
戈斯特会变乱码 | |
写描述没用 |