JavaScript learning notes 008-this0arguments0 arrow function

Author: Mr. Liu Shangyuan Give no less than any effort May all our efforts be lived up to Never forget why you started, and your mission can be accomplished. Learn from the beginning to the end You've heard the story of a bear breaking a stick They think bear is stupid I don't think I'll ever do that But they often do things like ...

Added by Guernica on Wed, 01 Jan 2020 23:41:24 +0200

Using Golang to realize Joseph Ring

Following the previous one-way list, the single line list can be further expanded into a ring, as shown in the following figure: Characteristic: 1. The first node is called the head node, and the last node is called the tail node 2. Each node points to the next node unilaterally 3. Tail node next node points to head node Title: Gaspar, a F ...

Added by nitroxman on Sun, 29 Dec 2019 22:11:28 +0200

Analysis of Vue principle: thoroughly understand the generation process from virtual Dom to real Dom

Previous: Analysis of Vue principle (4): do you know how to generate virtual Dom? After another tree structured JavaScript object, what we need to do now is to form a mapping relationship between this tree and the real Dom tree. First, we briefly review the previous mountComponent methods: export function mountComponent(vm, el) { vm.$el = e ...

Added by EXiT on Mon, 23 Dec 2019 12:23:54 +0200

Controlling internal queues with Java

There are many reasons why you should use internal queues in your program. There are many good reasons to use internal queues in a program. Most common patterns contain the same principle - divide the processing into two separate parts, each of which can then work autonomously. Queues are the best way to move objects from one thread to another ...

Added by freynolds on Fri, 20 Dec 2019 13:23:15 +0200

Simulate implementation of Promise (Beginner Edition)

Implement Promise Simulated (Small White Edition) This article talks about how to simulate the basic function of a Promise. There are already many articles like this on the Internet. There will be more ink in this article because you want to use your own understanding and spoken in vernacular Promise's basic specifications are referenced in thi ...

Added by Bigun on Mon, 16 Dec 2019 06:06:04 +0200

Java REST Client accessing Alibaba cloud 5.5 elastic search instance implementation

Development environment: InteliJ IDEA Operating system: Mac OS Mojave Elastic search version: Alibaba cloud 5.5.3 with x-pack Client version: REST Client 5.5.3 1. Create Alibaba cloud ES instance in advance and open the public address access white list. 2. Pre create index and mapping (using Kibana Dev Tools) PUT index_test { "mappings": ...

Added by shanejeffery86 on Mon, 09 Dec 2019 17:39:27 +0200

Android Development Notes Material Design animation -- water ripple and exposure effect

Today we will introduce some animations of the Material Design button: water ripple and exposure effect. Source download address: 1. Water ripple effect   1.1 layout file <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http: ...

Added by dawho9 on Thu, 05 Dec 2019 17:32:57 +0200

01 maze problem solving (bfs, connecting block)

subject https://www.luogu.org/problemnew/show/P1141 This solution is mainly for my personal problems and attention. Solving problems Let's start with the Unicom block For example, if a fish swims in a pond, then in the case of unlimited time, the small fish will swim across all positions of the pond, which has nothing to do with the starti ...

Added by webtuto on Thu, 05 Dec 2019 04:16:22 +0200

Spring annotation driven development

1 component registration 1.1 @ configuration & @ Bean register Bean 1.1.1 traditional xml Person.java package com.xuweiwei.spring.model; /** * @describe: * @author: Don't worry about the past, only laugh for the rest of my life. * @version: 1.0 */ public class Person { private String name; private Integer age; ...

Added by Illusion on Sat, 30 Nov 2019 12:42:59 +0200

Control the concurrency of Promise.all through Iterator

background Asynchronous is a very important feature of js, but many times, we not only want a series of tasks to be executed in parallel, but also want to control the number of concurrent tasks to be executed at the same time, especially for asynchronous tasks with limited resources, such as file handles, network ports, etc. Take an example. fu ...

Added by godfrank on Wed, 13 Nov 2019 12:07:06 +0200