摘要: 001--两数之和 比较简单,暴力法就能过,可以用HashMap优化一下 class Solution { public int[] twoSum(int[] nums, int target) { HashMap<Integer,Integer> maps = new HashMap<Intege 阅读全文
posted @ 2023-02-07 11:30 竹林取剑 阅读(15) 评论(0) 推荐(0) 编辑
摘要: # 去conda官网下载安装miniconda # 如: wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh sh ./Miniconda3-latest-Linux-x86_64.sh # 如果显示c 阅读全文
posted @ 2022-08-04 13:58 竹林取剑 阅读(39) 评论(0) 推荐(0) 编辑
摘要: # 命令 scp <本地文件> <用户名>@<域名>:<目标文件地址> # ex.传送文件夹 scp -r ./dirFileName root@0.0.0.0:dirName 阅读全文
posted @ 2022-07-29 22:41 竹林取剑 阅读(362) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get update #安装桌面软件 apt-get install ubuntu-desktop # 重启 reboot # 安装依赖 apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnom 阅读全文
posted @ 2022-07-29 13:38 竹林取剑 阅读(242) 评论(0) 推荐(0) 编辑
摘要: # 编辑 sudo vim /etc/apt/sources.list # 删除原有内容 vim快速操作指令:ggdG # 改为以下内容 # https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ # 例如ubuntu 16.04 deb https:// 阅读全文
posted @ 2022-07-29 13:23 竹林取剑 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 新建分支并且切换过去 git checkout -b <branchName> 合并分支 git merge <branchName> 将[branchName] 对应的分支内容,合并到当前head指向的分支 合并的区别 Fast-forward 即,合并分支和原分支在同一路径上,不会发生冲突,只用 阅读全文
posted @ 2022-01-02 23:04 竹林取剑 阅读(35) 评论(0) 推荐(0) 编辑
摘要: git <command> -h 查看该命令的帮助 git status 查看当前仓库状态 -s 可以输出简洁版本 git log 查看日志 -p 查看详细的提交记录 -stat 显示改变统计 -[数字] 查看数字所表示的个数的日志 --graph 图形化显示 --since=[时间] 指定查看某一 阅读全文
posted @ 2021-12-28 20:27 竹林取剑 阅读(71) 评论(0) 推荐(0) 编辑
摘要: axios: // 允许跨域 axios.defaults.withCredentials=true // 允许携带cookie axios.defaults.crossDomain=true express: const cors = require("cors"); // 导入cors 中间件, 阅读全文
posted @ 2021-03-17 21:04 竹林取剑 阅读(630) 评论(0) 推荐(0) 编辑
摘要: 1.Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.2 阅读全文
posted @ 2021-03-10 13:00 竹林取剑 阅读(53) 评论(0) 推荐(0) 编辑
摘要: curl -sSL https://get.daocloud.io/docker | sh 阅读全文
posted @ 2021-03-10 12:57 竹林取剑 阅读(50) 评论(0) 推荐(0) 编辑