local parser = require("argparse")("./test.lua") -- 指令名称 指令描述信息 指令参数列表(调用-s的时候参数会被加入参数列表中) -- parser:option("-s --search", "App search path.", {"app1" ...
分类:
其他 时间:
2021-06-30 18:36:46
收藏:
0 评论:
0 赞:
0 阅读:
20
Author: flipstables Reference: https://old.reddit.com/r/ExperiencedDevs/comments/nmodyl/drunk_post_things_ive_learned_as_a_sr_engineer/ I'm drunk and ...
分类:
其他 时间:
2021-06-30 18:36:03
收藏:
0 评论:
0 赞:
0 阅读:
18
import com.alibaba.fastjson.JSON; import com.example.demo.Demo.dto.Student; import java.util.*; import java.util.function.Function; import java.util.s ...
分类:
其他 时间:
2021-06-30 18:35:49
收藏:
0 评论:
0 赞:
0 阅读:
18
CosId 通用、灵活、高性能的分布式 ID 生成器 介绍 CosId 旨在提供通用、灵活、高性能的分布式系统 ID 生成器。 目前提供了俩大类 ID 生成器:SnowflakeId (单机 TPS 性能:409W/s JMH 基准测试)、RedisIdGenerator (单机 TPS 性能(步长 ...
分类:
其他 时间:
2021-06-30 18:35:24
收藏:
0 评论:
0 赞:
0 阅读:
25
string.IsNullOrEmpty:只能控制null和""string.IsNullOrWhiteSpace:控制null、""、" "(引号里面带空格) ...
分类:
其他 时间:
2021-06-30 18:32:27
收藏:
0 评论:
0 赞:
0 阅读:
24
PART1 1.实现: 将每条边按权值从小到大进行排序 (要用并查集维护)容边上两点不在同一个树,则合并 2.时间复杂度: Kruskal 算法的时间复杂度由排序算法决定,若采用快排则时间复杂度为 O(Elog?E) 总时间复杂度为 O(ElogE+V α(V)) 【α(V)近似看作常数】 3.特别 ...
分类:
其他 时间:
2021-06-30 18:32:18
收藏:
0 评论:
0 赞:
0 阅读:
30
一、获取服务名 登陆 consul UI 平台, 找到我们对应的服务,他们服务在 consul 中的名称。 二、 脚本 注销基于的api: http://{}:{}/v1/agent/service/deregister/{} 注销脚本: #!/usr/bin/env python3 # -*- c ...
分类:
其他 时间:
2021-06-30 18:32:05
收藏:
0 评论:
0 赞:
0 阅读:
18
这些CM消息,居然在Delphi的帮助里是没有任何说明的,真是昏倒。意外在高手的书里找到了所有说明,说明如下: Message Constant Value Description cm_Base $B000 Base constant used by all other component mes ...
分类:
其他 时间:
2021-06-30 18:31:14
收藏:
0 评论:
0 赞:
0 阅读:
27
下载地址: 官网地址:https://curl.haxx.se/ 官网文档:https://curl.haxx.se/docs/ 官网下载地址:https://curl.haxx.se/download.html curl安装步骤 获得安装包,从网上直接下载或者其他途径,这里直接wget wget ...
分类:
其他 时间:
2021-06-30 18:30:16
收藏:
0 评论:
0 赞:
0 阅读:
25
ZooKeeper 中的Znode 在被创建的时候,需要指定节点的类型,节点类型分为: 持久性节点,节点的数据化会持久化到磁盘。 临时节点,节点的生命周期和创建改节点的客户端的生命周期保持一致,一旦该客户端的绘画结束,则该客户端所创建的临时节点会被自动删除。 有序节点,在创建的节点后面会增加一个递增 ...
分类:
其他 时间:
2021-06-30 18:30:02
收藏:
0 评论:
0 赞:
0 阅读:
27
Pixelmator Pro 2.1 Coral 带来 AI 驱动的裁剪、快速填充和笔刷功能 ...
分类:
其他 时间:
2021-06-30 18:29:49
收藏:
0 评论:
0 赞:
0 阅读:
28
function captureImage () { var scale = 0.25; var txt = document.querySelector('div p .external'); video = document.querySelector("video"); var canvas ...
分类:
其他 时间:
2021-06-30 18:29:40
收藏:
0 评论:
0 赞:
0 阅读:
33
安装Harbor时,下载安装了docker-compose并赋予权限 sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o ...
分类:
其他 时间:
2021-06-30 18:29:00
收藏:
0 评论:
0 赞:
0 阅读:
66
public HttpResult<ESResult> inserSql(int pageNum,int pageSize) throws IOException { RestClient restClient = RestClient.builder( new HttpHost("127.0.0. ...
分类:
其他 时间:
2021-06-30 18:28:49
收藏:
0 评论:
0 赞:
0 阅读:
28
<?php $str = 'string'; $chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY); print_r($chars); ?> 以上例程会输出: Array ( [0] => s [1] => t [2] => r [3] = ...
分类:
其他 时间:
2021-06-30 18:28:38
收藏:
0 评论:
0 赞:
0 阅读:
21
import numpy as npimport pandas as pdimport matplotlib.pyplot as pltimport torchfrom torch import nnfrom torch.optim import Adamfrom sklearn.model_sel ...
分类:
其他 时间:
2021-06-30 18:26:33
收藏:
0 评论:
0 赞:
0 阅读:
33
Strings.isEmpty() 当str为null或""时返回true,其他情况返回false Strings.isBlank() 当str为null,"",或空白字符时返回true,其他情况返回false System.out.println(Strings.isEmpty(null));// ...
分类:
其他 时间:
2021-06-30 18:26:10
收藏:
0 评论:
0 赞:
0 阅读:
29
1、上传 Redis 包,用 用 tar -zxvf 命令解压 2、在解压后的包中,执行 make 命令编译 3、执行 make install 命令;make install PREFIX=/usr/local/redis(Redis解压后没有 configure 文件,可在这一步指定安装目录;前 ...
分类:
其他 时间:
2021-06-30 18:25:21
收藏:
0 评论:
0 赞:
0 阅读:
23
spring validation验证框架对参数的验证机制提供了@Validated(Spring's JSR-303规范,是标准JSR-303的一个变种),javax提供了@Valid(标准JSR-303规范),配合BindingResult可以直接提供参数验证结果,校验数据,如果数据异常则会统一 ...
分类:
其他 时间:
2021-06-30 18:24:34
收藏:
0 评论:
0 赞:
0 阅读:
36
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> .p1{ color: red; font-size: 30px; font-family: "微软雅黑"; /* ...
分类:
其他 时间:
2021-06-30 18:24:03
收藏:
0 评论:
0 赞:
0 阅读:
20