React17+TS4 project construction
1. Create a new react+ts project
npx create-react-app <appname> --template typescript
2. push the new local project to the remote warehouse
New remote warehouse
Open the local project directory and add all the existing files in the current directory to the newly created git warehouse
Execute git add
Submit the added documents and w ...
Added by Tjeuten on Sat, 05 Mar 2022 00:08:51 +0200
ELK cluster environment deployment of big data series
This paper mainly introduces the environment deployment and configuration of ELK related components, and takes the system syslog as the source data input to test and verify the data reception of elasticsearch and the data display of Kibana.
1. Introduction to basic concepts and environment configuration
1.1 basic concept of Elk
ELK is an o ...
Added by k4pil on Fri, 04 Mar 2022 23:52:58 +0200
2021-04-17 the use method of hooks listView long list in antd moblie, enter the error reporting dataSource for the second time, and report the error must be the same
Official usage (custom container) https://mobile.ant.design/components/list-view-cn/#components-list-view-demo-basic-sticky The official method of use is very smooth at first glance, but there will be some unexpected problems as soon as the data is put on. I have deep experience
At first glance, some friends may not understand the meaning of o ...
Added by robinjohn on Fri, 04 Mar 2022 23:52:15 +0200
[Java basics] 009 internal classes
concept
In Java, a class can be defined in another class or a method. Such a class is called an inner class.
In a broad sense, internal classes generally include these four types: member internal classes, local internal classes, anonymous internal classes and static internal classes.
Member inner class
Member inner class is the most ...
Added by joeysarsenal on Fri, 04 Mar 2022 23:42:35 +0200
45 GIT classic operation scenarios, specializing in code
Hello, I'm Xiaofu~Technology exchange pays attention to official account: something inside programmersPortal: Original address Git should be familiar to everyone. Skillfully using git has become a basic skill of programmers. Although there are cow X client tools such as Sourcetree at work, which makes it convenient to merge code. But job interv ...
Added by mitch.craig on Fri, 04 Mar 2022 23:40:57 +0200
Kobular data
A baby suckling dog will have a name, breed and a bunch of lovely characteristics as its attributes. If you model it as a class and only use it to hold these attribute data, you should use the data class. When using data classes, the compiler will automatically generate toString(), equals() and hashCode() functions for you, and provide them o ...
Added by vumpler on Fri, 04 Mar 2022 23:18:21 +0200
Web page parsing tool
Web page parsing tool
BS4
Beautiful soup is a Python library that can extract data from HTML or XML files. Its use is more simple and convenient than regular, and can often save us a lot of time.
Official Chinese documents
https://www.crummy.com/software/BeautifulSoup/bs4/doc/index.zh.html
install
pip install beautifulsoup4
Parser
Parse ...
Added by DaveEverFade on Fri, 04 Mar 2022 23:06:36 +0200
New feature of ES6 | array extension
1. Extension operator
(1) Basic usage
Array to parameter sequence (comma separated)
let arr = [1,2,3];
console.log(...arr); // 1 2 3
function call
let arr = [1,2];
function add(x,y) {
console.log(x+y);
};
add(...arr); // 3
Extension operators can place expressions
const arr = [
...(x>0 ? ['a']:[]),
'b',
]
If the e ...
Added by helloworld on Fri, 04 Mar 2022 23:01:39 +0200
Fundamentals of Java programming language 05: Java classes and objects
catalogue
1. Definition and composition of class
1.1 definition of class
2.2 use of class
2. Classes, objects and references
Type 2.1
2.2 object
2.3 references
3. Class knowledge expansion
3.1 initial value of member variable
3.2 define your own reference in the class
3.3 array of classes
1. Definition and composition of class
1 ...
Added by Cheap Commercial on Fri, 04 Mar 2022 22:58:10 +0200
Predict interface of Java 8
The test () part of the predict interface is the source code
@FunctionalInterface
public interface Predicate<T> {
/**
* The specific filtering operation needs to be implemented by subclasses
* Used to process whether the parameter t meets the requirements
*/
boolean test(T t);
The test method is used to:
1 . Ev ...
Added by Beyond Reality on Fri, 04 Mar 2022 22:39:04 +0200