Notes icon indicating copy to clipboard operation
Notes copied to clipboard

:rocket: 笔记

Results 100 Notes issues
Sort by recently updated
recently updated
newest added

![image](https://user-images.githubusercontent.com/8264787/102167150-c2f2b780-3ec8-11eb-9082-c8178687c4d7.png) ![image](https://user-images.githubusercontent.com/8264787/102167177-d56cf100-3ec8-11eb-8743-dba6d71784e9.png)

### 全局设置 ![image](https://user-images.githubusercontent.com/8264787/102058982-478ef880-3e2b-11eb-8052-07a50f82bd7f.png) ### 项目设置 ![image](https://user-images.githubusercontent.com/8264787/102059089-63929a00-3e2b-11eb-9de6-65fdedff1d5d.png)

```java System.setProperty('org.apache.commons.jelly.tags.fmt.timeZone', 'Asia/Shanghai') ``` ![image](https://user-images.githubusercontent.com/8264787/102048972-01319d80-3e1b-11eb-959e-118d718d8df4.png)

## 安装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 ```

![image](https://user-images.githubusercontent.com/8264787/90143657-74b19880-ddb0-11ea-8c85-909efd65d3da.png) 如果nodeResolve写在了typescript前面, 那么会出现在ts.config中paths定义的映射的文件如果发生变化, rollip检测不到变化, 所以不会编译. ![image](https://user-images.githubusercontent.com/8264787/90144199-1afd9e00-ddb1-11ea-9399-38a661cdf8f9.png) 猜测是因为nodeResolve把依赖标记过, typescript检测不到依赖的文件了 ![image](https://user-images.githubusercontent.com/8264787/90144175-12a56300-ddb1-11ea-8b6f-648971319c43.png)

## 思路 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...