Python bit by bit accumulation
Python class
Define a class
Method * * init()**
Python automatically runs this method whenever a new instance is created. In this method name, there are two underscores at the beginning and the end, which is a convention to avoid name conflicts between Python default methods and ordinary methods.
cl ...
Posted on Fri, 19 Jun 2020 04:09:39 -0400 by vertmonkee
Two methods of closure and high frequency event performance optimization (throttling, anti shake)
Format of code development - pay attention to conflicts and dependencies
There are many ways to write a project, such as modular development, namespace, closure Closure is actually a kind of writing
Closure: it is a function structure unique to JavaScript (a nested use of functions)
The formation of clo ...
Posted on Fri, 19 Jun 2020 00:52:31 -0400 by wpsd2006
Kago takes you to learn big data series from scratch Java Chapter 11: Enumeration
Key points of the course:
Basic definition of enumeration
Basic use of enumeration
11.1. Introduction to enumeration
11.1.1. The concept of enumeration
Enumeration is also a custom data type, which is a reference data type. Enumeration is often used to describe data with limited value range.
F ...
Posted on Thu, 18 Jun 2020 23:50:42 -0400 by jdsflash
Dynamic update of JAVA static constant non @ Value annotation based on NACOS and JAVA reflection mechanism
1. Preface
Constant class files are used in projects. If the values need to be changed, the code needs to be resubmitted, or the @ Value annotation is used to realize dynamic refresh. If there are too many constants, it is also very troublesome. Can there be a simpler way to implement them?
This article describes the way that a JAVA class cor ...
Posted on Thu, 18 Jun 2020 22:05:31 -0400 by Frame
Spring Learning Notes 05 - Inject Details
Injection Details
There are two types of injection, as follows:
Set Injection
Construction Injection
Set Injection Details
Use the <property>tag.
Injection assignments to member variables.For different types of member variables.Other tags can be nested within <property>tags.
Membership ...
Posted on Thu, 18 Jun 2020 20:56:10 -0400 by derekm
Flutter learning notes (33) -- GestureDetector gesture recognition
For reprint, please indicate the source: Flutter learning notes (33) -- GestureDetector gesture recognition
The main learning content recorded in this essay is GestureDetector gesture recognition, including recognition of click, double-click, long press, component drag and zoom processing.
Click, double-click, long press
First look at the dem ...
Posted on Thu, 18 Jun 2020 06:01:13 -0400 by ScoTi
A brief analysis of the starting process of Deno source code
start
Here we start from the start of Deno to analyze: how the TS code is loaded and running, what has been done in each step; hope to give you some inspiration.
Deno start
Go straight to cli/main.rs Main method of:
pub fn main() {
...
log::set_logger(&LOGGER).unwrap(); //Set log level
let args: Vec<String> = env::args().collec ...
Posted on Thu, 18 Jun 2020 04:14:48 -0400 by FirePhoenix
[ES6]Day07 - constructor and prototype, inheritance
Getting started with ECMAScript 6 (Day07)
Continued: [ES6]Day06 - classes and objects in ES6
7.1.1 general
In the typical object-oriented language (java), there is the concept of class. Class is the template of object and object is the instance of class. But before ES6, js did not refer to the conce ...
Posted on Wed, 17 Jun 2020 21:44:52 -0400 by Axem
labelme batch processing json files, json_to_dataset method
labelme batch processing json files, json_to_dataset method
Step 1: find json_to_dataset.py file
Step 2 modify json_to_dataset.py file
Step 3 find labelme_json_to_dataset.exe file
Step 4 switch paths
Step 5: pass in the. json file path and perform the conversion
complete
This is the data generated ...
Posted on Wed, 17 Jun 2020 03:47:42 -0400 by jabba_29
Initial javaScript hunting
Chapter 1 Introduction to JavaScript
1.ECMAScript Core Language Functions
2.DOM Document Object Model
3.BOM Browser Object Model
Chapter 2 Using JavaScript in HTML
1. <script>element
Defer indicates that the script will not affect page construction during execution, that is, it will delay ...
Posted on Mon, 15 Jun 2020 21:51:23 -0400 by jscruggs