上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
摘要: 问题 曾经一直习惯使用 pip freeze > requirements.txt ,它确实方便,无需动脑,一条命令万事大吉。但最后生成的 requirements.txt很有可能非常臃肿。但这个文件经常需要在打包二进制可执行程序的时候用到,这里推荐手动维护的方式,使得requirements.tx 阅读全文
posted @ 2022-02-08 16:14 略略略—— 阅读(184) 评论(0) 推荐(0) 编辑
摘要: desired output Last login: Fri Jan 28 17:05:06 on ttys002 ➜ ~ cd .. ➜ /Users 实现方法 在 ~/.zshrc 中加入: precmd() { precmd() { echo } } 即可实现在每条命令完成之后输出空行,且首次 阅读全文
posted @ 2022-01-28 17:10 略略略—— 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 假设 .gitmodules 是这样的: [submodule "abc"] path = abc url=git@github.com:me/abc.git 之前一直以为有了这个文件子模块就会自动拉取最新版本的代码,其实不是的,需要手动指定和变更。 正确做法 git submodule updat 阅读全文
posted @ 2022-01-28 14:27 略略略—— 阅读(3008) 评论(0) 推荐(0) 编辑
摘要: 使用背景 比如有人往remote推送了一个新的分支,自己本地没有,但想同步到本地 git switch 首先 git branch -r ,找到你需要的那个分支名称 origin/HEAD -> origin/master origin/newBranch git switch newBranch 阅读全文
posted @ 2022-01-28 11:07 略略略—— 阅读(509) 评论(0) 推荐(1) 编辑
摘要: 以前读书时候一直用的参考网站,竟然已经挂了:http://man.linuxde.net/docs/shell_regex.html 还好有 web archive: https://web.archive.org/web/20210831062203/https://man.linuxde.net 阅读全文
posted @ 2022-01-27 17:31 略略略—— 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 推荐这个文档: https://docs.w3cub.com/python~2.7/library/xml.etree.elementtree 基本概念 ElementTree 代表把整个xml作为一棵树处理 Element 代表树中的一个节点 整体操作,如文件读写,多用ElementTree, 具 阅读全文
posted @ 2022-01-27 17:15 略略略—— 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 问题 试图合并 git checkout develop git pull git checkout feature/branchname git merge develop GitHub显示冲突 This branch has conflicts that must be resolved to 阅读全文
posted @ 2021-12-22 14:06 略略略—— 阅读(3576) 评论(1) 推荐(0) 编辑
摘要: 错误情况 pac文件中已经添加域名,浏览器可以访问github.com,但终端ping不通。 使用yarn install 安装依赖,一直遇到 fatal: unable to access 'https://github.com/protobuf.js/': LibreSSL SSL_read: 阅读全文
posted @ 2021-12-08 11:23 略略略—— 阅读(3892) 评论(0) 推荐(0) 编辑
摘要: Java常用模式,第一个字母小写,strict lower camel case [a-z]+((\d)|([A-Z0-9][a-z0-9]+))*([A-Z])? 可以匹配以下字符串: xmlHttpRequest newCustomerId innerStopwatch supportsIpv6 阅读全文
posted @ 2021-12-06 16:50 略略略—— 阅读(1547) 评论(1) 推荐(1) 编辑
摘要: 问题 it("should return 401 if token has wrong tenant", async ()=>{ request(app).get('/abc').set("Authorization", token).expect(401) }) 然而当我把expect 换成其他任 阅读全文
posted @ 2021-11-24 16:00 略略略—— 阅读(56) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页