代码推送脚本 代码推送的流程为: 前端代码构建 压缩构建后的代码 ssh 连接 上传压缩文件到指定目录 ssh 交互 cd 到指定目录 ssh 交互 unzip 压缩包,并且删除一些文件 ssh 退出登录 代码如下: const chalk = require('chalk'); const ora ...
分类:
其他好文 时间:
2020-07-01 00:12:42
阅读次数:
65
package LeetCode_207 import java.util.* import kotlin.collections.ArrayList /** * 207. Course Schedule * https://leetcode.com/problems/course-schedule ...
分类:
其他好文 时间:
2020-06-30 22:55:21
阅读次数:
64
基本方法又可以分为三种:抽象方法(Abstract Method)、具体方法(Concrete Method)和钩子方法(Hook Method)。 这是我在《java与模式》书里看到的一种说法,觉得很新鲜,因为在我的印象中没有以这种方式来对方法分类,可能这也就是在设计模式中的叫法。 这三种方法也是 ...
分类:
其他好文 时间:
2020-06-30 17:34:50
阅读次数:
65
// Body represents the response body. // // The response body is streamed on demand as the Body field // is read. If the network connection fails or t ...
分类:
其他好文 时间:
2020-06-30 11:07:15
阅读次数:
64
非递归解法 递归解法比较简单,是考察概念,放在文章末尾来说。 用递归方法能解决的问题都能用非递归方法来实现,因为递归方法无非就是用函数栈来保存信息,如果用自己申请的数据结构来代替函数栈,也可以实现一样的功能 步骤: 1.申请一个栈,将头节点head压入栈中 2.从stack中弹出结点,记为temp, ...
分类:
其他好文 时间:
2020-06-30 00:41:42
阅读次数:
57
#include<iostream> #include<cstring> #include<algorithm> #include<cmath> #include<cstdlib> #include<climits> #include<stack> #include<vector> #include ...
分类:
其他好文 时间:
2020-06-29 22:59:58
阅读次数:
65
安装JDK1.8 查看JDK1.8的安装 https://www.cnblogs.com/TJ21/p/13208514.html 安装hadoop 上传hadoop 下载hadoop 地址http://mirrors.hust.edu.cn/apache/hadoop/common/ 放到mkdi ...
分类:
其他好文 时间:
2020-06-29 17:13:37
阅读次数:
53
题目描述 LL今天心情特别好,因为他去买了一副扑克牌,发现里面居然有2个大王,2个小王(一副牌原本是54张^_^)... 他随机从中抽出了5张牌,想测测自己的手气,看看能不能抽到顺子,如果抽到的话,他决定去买体育彩票, 嘿嘿!!“红心A,黑桃3,小王,大王,方片5”,“Oh My God!”不是顺子 ...
分类:
其他好文 时间:
2020-06-29 16:55:49
阅读次数:
65
#include<bits/stdc++.h> using namespace std; #define Swap(a,b) {int temp=a;a=b;b=temp;} int data[]={1,2,3,4,5,6,7,8,9,10}; int num=0; int Perm(int beg ...
分类:
其他好文 时间:
2020-06-29 11:34:30
阅读次数:
45
public static void main(String[] args) {// String html = "<img style=\"width: 100%; height: auto;\"><p>test</p>"; String temp = HtmlUtils.htmlEscape(h ...
分类:
Web程序 时间:
2020-06-28 20:24:29
阅读次数:
96