Notes
Notes copied to clipboard
:rocket: 笔记
 
### 全局设置  ### 项目设置 
```java System.setProperty('org.apache.commons.jelly.tags.fmt.timeZone', 'Asia/Shanghai') ``` 
## 安装docker ## 下载jenkins 一定主要要安装中文版, 不然安装“推荐插件“会失败, 因为英文版插件需要翻墙才能下载。 ```shell docker pull docker.io/jenkins/jenkins ``` ## 安装jenkins ```shell docker run -d -p 8081:8080 -p 50000:50000 -v jenkins:/var/jenkins_home -v /etc/localtime:/etc/localtime --name myjenkins docker.io/jenkins/jenkins ```...
yarn add 5a.css@latest --registry=https://registry.npmjs.org/
``` VUE_APP_UPLOAD_URL = 'http://127.0.0.1:3000/upload2' ```
## window下 ### 新建文件 `C:\Users\Ning\pip\pip.ini` ### 内容 ``` [global] trusted-host = mirrors.aliyun.com index-url = https://mirrors.aliyun.com/pypi/simple ```
 如果nodeResolve写在了typescript前面, 那么会出现在ts.config中paths定义的映射的文件如果发生变化, rollip检测不到变化, 所以不会编译.  猜测是因为nodeResolve把依赖标记过, typescript检测不到依赖的文件了 
## 思路 1. 已知一维数组[1,2,7,5,9], 我们叫他*nums* 2. 新建一个数组dp, 存储*nums中索引为i的数字*作上升子序列最后一位时该子序列的最大长度 3. 通过双层循环, 我们比对前一个数和当前数字(索引为i)的大小关系, 如果当前数字大于前一个那么dp[i]等于dp[j]+1, 但是如果dp[j]+1还没有dp[i]大, 说明dp[j]不在连续的递增子序列中, 所以dp[i]的不做修改(依旧等于dp[i]); ```javascript function lengthOfLIS (nums) { const { length } = nums; const dp = new...
``` javascript 5>>1 // 1 // 等同于 Math.floor(5/2) ``` ### 位运算">>"的作用 1. 把5的变成2进制: 101 2. 最高位置向后推**1**位, 也就是101 => 10(删除101最后的1) 3. 10的10进制就是2. ### 进而 ``` javascript 5 >> 2 // Math.floor(5...