环境 系统:CentOS 7.5软件:prometheus-2.18.1.linux-amd64.tar.gz 安装 下载二进制包地址:https://prometheus.io/download/ 安装 # tar -xzvf prometheus-2.18.1.linux-amd64.tar.g ...
分类:
其他好文 时间:
2020-06-29 17:09:15
阅读次数:
88
基本用法 Object.assign方法用于对象的合并,将源对象(source)的所有可枚举属性,复制到目标对象(target const target = { a: 1 }; const source1 = { b: 2 }; const source2 = { c: 3 }; Object.as ...
分类:
其他好文 时间:
2020-06-29 17:07:56
阅读次数:
54
做任何事都要经受得挫折,要有恒心和毅力,满怀信心坚持到底 Hadoop配置集群事件同步 时间同步方式 找一台机器,作为时间服务器,所有的机器与这台集群时间进行定时的同步,比如,每隔十分钟,同步一次时间 配置时间同步步骤 1.时间服务器配置(必须root用户) rpm -qa|grep ntp 2.修 ...
分类:
其他好文 时间:
2020-06-29 17:07:37
阅读次数:
45
原文:https://blog.csdn.net/Mr_Zhangxiaosen/article/details/89238391 场景:开发过程中,因接口请求是post,假设浏览器访问是http://baidu.com ,接口请求是http://cnblogs.com 存在跨域,请求变option ...
分类:
其他好文 时间:
2020-06-29 17:07:23
阅读次数:
67
(1)新建分支 git branch xxx (xxx填写你的分支名称) (2)查看所有分支 git branch -a (3)切换到某一分支 git checkout xxx (xxx填写要切换的分支名称) (4)添加修改代码到缓存(注意最后的"."前面有个空格 git add . (5)添加提交 ...
分类:
其他好文 时间:
2020-06-29 17:06:49
阅读次数:
154
一、实现效果 1、当 input 输入框不符合要求且在 input 失焦时显示提示词,符合要求隐藏提示词 2、实现 input 组件基本功能 二、组件实现代码 1、HTML <template> <div class="labelInput"> <span class="title">{{title ...
分类:
其他好文 时间:
2020-06-29 17:05:52
阅读次数:
56
#include <stdio.h>int main(){ int max(int x,int y); int a,b,c; printf("Please input two data:\n"); scanf("%d%d",&a,&b); c=max(a,b); printf("max is :%d ...
分类:
其他好文 时间:
2020-06-29 17:05:39
阅读次数:
202
IIC 特点 1、Inter-Integrated Circuit,内部集成总线,半双工 2、短距离传输,有应答,速度较慢 3、SDA双向数据线,SCL时钟线 4、可以挂载多个设备,IIC设备有固化地址,传输值等于IIC固化地址,对应设备作出响应 基本过程 初始空闲:SDA和SCL均为高电平(具有上 ...
分类:
其他好文 时间:
2020-06-29 17:04:12
阅读次数:
61
//SORT1 EXEC PGM=SORT //SORTIN DD * 02CAR 2370000000000000 SMPL1 2370000000000000 SMPL2 2370000000000000 SMPL3 9201007160000000 02BIKE 237000000000000 ...
分类:
其他好文 时间:
2020-06-29 17:02:54
阅读次数:
58
当我们想showSnackBar的时候,需要通过Scaffold.of(context)得到Scaffold。但是如果这个context用错的话,flutter就会抛出错误。下面我们通过代码仔细看一下。 issue code import 'package:flutter/material.dart ...
分类:
其他好文 时间:
2020-06-29 17:01:38
阅读次数:
63
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver import ActionChains import time driver=webdrive ...
分类:
其他好文 时间:
2020-06-29 17:01:23
阅读次数:
79
父到子传值 props 子组件:声明一个props属性 父组件:绑定子组件声明的那个属性 ...
分类:
其他好文 时间:
2020-06-29 17:01:05
阅读次数:
57
A.Required Remainder 传送门 #include<bits/stdc++.h> using namespace std; #pragma GCC optimize(2) typedef long long ll; typedef unsigned long long ull; ty ...
分类:
其他好文 时间:
2020-06-29 17:00:21
阅读次数:
91
通用插件 HTML Snippets 超级实用且初级的 H5代码片段以及提示 HTML CSS Support 让 html 标签上写class 智能提示当前项目所支持的样式新版已经支持scss文件检索 Debugger for Chrome 让 vscode 映射 chrome 的 debug功能 ...
分类:
其他好文 时间:
2020-06-29 16:59:29
阅读次数:
75
import torch x = torch.rand(2,2) x1 = x.numpy() # torch转换到numpy x2 = torch.from_numpy(x1) #numpy转换torch print("\n torch_x:\n",x, "\n numpy_x1:\n",x1, ...
分类:
其他好文 时间:
2020-06-29 16:58:26
阅读次数:
49
注意:备份和恢复使用的Gitlab 版本必须一致 1、停止数据相关服务gitlab-ctl stop unicorn gitlab-ctl stop sidekiq2、还原gitlab-rake gitlab:backup:restore BACKUP=/var/opt/gitlab/backups ...
分类:
其他好文 时间:
2020-06-29 16:58:11
阅读次数:
62
这个月每日一题有很多没做的,主要重心放在并查集和二分查找的题。 ...
分类:
其他好文 时间:
2020-06-29 16:57:53
阅读次数:
49