python_Object Oriented Advancement

Object-oriented Advancement 03 Metaclass A metaclass is a class of a class and a template for a class An instance of a metaclass is a class, just as an instance of a class is an object. Classes are objects in nature, so they can do the following: You can assign it to a variable You can copy it You ...

Posted on Sun, 26 Jan 2020 20:30:10 -0800 by xander85

[winter vacation 2020 JAVA] day15 jQuery advanced notes

JQuery advanced 1. animation 1. Three ways to show and hide elements 1. Default display and hide mode 1. show([speed,[easing],[fn]]) 1. parameters: 1. speed: the speed of animation. Three predefined values ("slow","normal", "fast") or millisecond values rep ...

Posted on Sun, 26 Jan 2020 10:00:35 -0800 by nano

Understanding Netty Concurrency Tool from Source-Promise

premise Recently, I have been watching Netty-related content and writing a lightweight RPC framework to practice. I found many highlights in Netty's source code. Some implementations can even be described harshly.In addition, Netty provides excellent tools that can be used out of the box.Here's an a ...

Posted on Sat, 25 Jan 2020 02:00:57 -0800 by lehara

NumPy 8 - Array Operation

NumPy 8 - Array Operation Article Directory NumPy 8 - Array Operation 1. Modify Array Shape All Function Methods 1. numpy.reshape Modify Shape Example 2. numpy.ndarray.flat iterator 3. numpy.ndarray.flatten array copy 4. numpy.ravel Flattening 2. Flip Array 1,numpy.transpose numpy.ndarray.T 2,n ...

Posted on Fri, 24 Jan 2020 20:26:51 -0800 by mjr

Simple implementation of reach fiber traversal

Tree traversal can adopt recursion or stack simulation recursion, or queue level traversal fiber uses the chain list to simulate the pre order traversal, and completes the traversal in a cycle. Compared with the previous stacks and recursion, when the tree level is higher, the call stack is longer, and the length of the traversal queue is also ...

Posted on Fri, 24 Jan 2020 06:23:11 -0800 by daucoin

Spring Cloud learning - link tracking: sleuth

Why Spring Cloud Sleuth is needed Microservice architecture is a distributed architecture, which divides service units according to business. A distributed system often has many service units. Due to the large number of service units and the complexity of business, it is difficult to locate if there a ...

Posted on Thu, 23 Jan 2020 04:48:16 -0800 by LeadingWebDev

Web Foundation - JavaScript

Article Directory DOM Simple Learning: To meet case requirements Event Simple Learning BOM: 1. Concepts: Browser Object Model Browser Object Model 2. Composition: 3. Window: Window Object 4. Location: Address bar object DOM: Concepts: Core DOM model: HTML DOM Event monitoring mechanism: DOM ...

Posted on Wed, 22 Jan 2020 18:09:39 -0800 by Jramz

VScode configuration prettier and eslint

In the front-end tool, if the prettier is used for code formatting, eslint performs error detection. Great help for front-end work Principle: The prettier and eslint configurations can be divided into two types: local configuration and global configuration. VScode will check whether there are user-def ...

Posted on Wed, 22 Jan 2020 06:06:06 -0800 by Shandrio

ng-template syntax

interpolation Text Binding <p>Message: {{ msg }}</p> <p [innerHTML]="msg"></p> Property Binding <!-- how to write --> <img src="{{ heroImageUrl }}"> <!-- Writing 2, Recommendation --> <img [src]="heroImageUrl"> <!-- Writing Method Three --> <img bind-src="heroImageUrl"> In the case ...

Posted on Tue, 21 Jan 2020 19:52:01 -0800 by .-INSANE-.

Annotations at the core of the MyBatis framework use resultMap and multitable queries

A few days ago, I found annotations troublesome and suddenly realized that compared to the traditional mapper.xml+ interface, XML uses interface mapping more troublesome, so we can use annotations to simplify development. Here is a brief introduction to the use of @Results, @Result, @One and @Many. This ...

Posted on Tue, 21 Jan 2020 17:46:12 -0800 by Jebs