update: 简单整理了一下代码的组织。 处理的单词封装成类,单词的修正,信息的显示都作为其内的方法。 写得还比较糙,工具本身可以封装,还有对于单词的变形基本没什么处理,以后有时间再改。 项目托管到github上了。https://github.com/MorpheusDong/TextVocab ...
分类:
其他好文 时间:
2020-07-04 17:00:05
阅读次数:
49
Description Given an array of integers cost and an integer target. Return the maximum integer you can paint under the following rules: The cost of pai ...
分类:
其他好文 时间:
2020-07-04 16:59:34
阅读次数:
73
编写插件 一个插件的目录如下: 根目录下必须有manifest.json,其他的自己随意。这个json就描述了这个插件的所有信息,应该调用的脚本等。 这个插件是在所有 mozilla.org 的页面加上一个边框。 json如下: { "manifest_version": 2, // 必须,json ...
分类:
其他好文 时间:
2020-07-04 16:59:17
阅读次数:
168
import java.util.Arrays; /* 给定一个32位正整数 n,你需要找到最小的32位整数,其与 n 中存在的位数完全相同,并且其值大于n。如果不存在这样的32位整数,则返回-1。 示例 1: 输入: 12 输出: 21 示例 2: 输入: 21 输出: -1 来源:力扣(Leet ...
分类:
其他好文 时间:
2020-07-04 16:58:44
阅读次数:
55
这一节我们在三个主节点部署高可用的etcd集群,官方建议5节点或者7节点,我们三节点也是够用的。我们开始吧! 一、环境准备 10.13.33.29 etcd-0 10.13.33.40 etcd-1 10.13.33.38 etcd-2 etcd 数据目录:ETCD_DATA_DIR="/data/ ...
分类:
Web程序 时间:
2020-07-04 16:58:29
阅读次数:
87
1.写在方法体里面 表格上 <el-table-column label="序号" type="index" :index='indexMethod' width="80" align="center"></el-table-column> 定义的分页 const defaultListQuery ...
分类:
其他好文 时间:
2020-07-04 16:58:14
阅读次数:
113
首先先对《叮咚!院“十佳”优秀经管青年组团出道,快来打call~》这篇微信文章分析,查看网页源代码可以发现,整篇文章的文字部分以层次关系分别在<div id = “js_article”> --> <div class = “rich_media_inner”> --> <div id = “pag ...
分类:
微信 时间:
2020-07-04 16:57:55
阅读次数:
174
简单的贪心法,代码如下 1 #include <iostream> 2 #include<stdio.h> 3 double amount[1000]; 4 double price[1000]; 5 using namespace std; 6 int getMax(int n){ 7 int r ...
分类:
其他好文 时间:
2020-07-04 16:57:41
阅读次数:
70
启动集群及监控 进入目录 cd /usr/local/hadoop-2.6.5/sbin/ 启动整个集群组件 ./start-dfs.sh 启动yarn集群 ./start-yarn.sh 启动日志服务 ./mr-jobhistory-daemon.sh start historyserver 查看 ...
分类:
其他好文 时间:
2020-07-04 16:57:27
阅读次数:
64
php 1,安装完php7,进入目录文件夹,使用命令php-cgi.exe -b 127.0.0.1:9000-c ,启动php-cgi 2,如果无法连接数据查另外一个贴解决。 msyql8 1,安装完进入目录 mysqld --initialize-insecure,获取初始化密码; # 安装my ...
分类:
数据库 时间:
2020-07-04 16:57:16
阅读次数:
65
一、DNS的基本功能 在互联网中,从域名到IP地址的转换是一个基础功能,之前一直想结合流行的DNS服务器bind来看下服务器侧的配置,所以最近有时间就总结一下。对于应用(或者说客户端)来说,对域名服务的使用主要基于C库的gethostbyname函数,该函数实现比较复杂,事实上,在glibc的根目录 ...
分类:
其他好文 时间:
2020-07-04 16:57:04
阅读次数:
57
序言 Vuex是什么? Vuex分成五个部分: State:单一状态树 Getters:状态获取 Mutations:触发同步事件 Actions:提交mutation,可以包含异步操作 Module:将vuex进行分模块 资料 ...
分类:
Web程序 时间:
2020-07-04 16:56:52
阅读次数:
74
资料来源于网上: public static Bitmap ImageRotate(Bitmap bmp, float angle, Color bkColor) { int w = bmp.Width + 2; int h = bmp.Height + 2; PixelFormat pf; if ...
索引 import pandas as pd ser=pd.Series(range(0,10,2)) print(ser) 0 0 1 2 2 4 3 6 4 8 dtype: int64 通过索引值或索引标签获取数据 通过index查看索引值 print(ser.index) RangeInde ...
分类:
其他好文 时间:
2020-07-04 16:56:12
阅读次数:
240
1.编写切面类 @Component @Aspect @Slf4j public class SellerAuthorizeAspect { @Autowired StringRedisTemplate stringRedisTemplate; @Pointcut(value = "executio ...
分类:
编程语言 时间:
2020-07-04 16:55:54
阅读次数:
133
krenz的网课,透视与结构、动态与构成、色彩与光影 赠送 人体结构教程+psd+k大笔刷 完整版地址:点击我 1、生成资源 servie.yaml 1.1、yaml转json service模板yaml apiVersion: v1 kind: Service metadata: name: ${ ...
分类:
其他好文 时间:
2020-07-04 16:55:33
阅读次数:
1533
给定一个只包含 '(' 和 ')' 的字符串,找出最长的包含有效括号的子串的长度。 示例 1: 输入: "(()" 输出: 2 解释: 最长有效括号子串为 "()" 示例 2: 输入: ")()())" 输出: 4 解释: 最长有效括号子串为 "()()" 来源:力扣(LeetCode) 链接:ht ...
分类:
其他好文 时间:
2020-07-04 16:55:17
阅读次数:
51