Summary of JavaScript basic video tutorial (Chapter 051-060)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>051-060 Chapter summary</title>
</head>
<body>
<pre>
051. Function introduction
- Function is also an object
- Functions can encapsulate some functions (codes) and execute them when necessary
- Function can save some ...
Posted by kentopolis on Mon, 02 Dec 2019 01:35:12 -0800
The internal structure of HashMap analysis
Preface
This paper is based on the analysis of HashMap in Java 8. It mainly introduces the use of member variables and class variables in HashMap, and analyzes the data structure of HashMap.
Variable analysis
There are multiple member variables and class variables in the HashMap. It is helpful for us to have a better understanding of their purp ...
Posted by konn on Sun, 01 Dec 2019 18:39:38 -0800
JavaScript for Mobile-End Roadcast Map Effect
Functional description:
Automatically rotate pictures seamlessly, with small dots at the bottom consistent with the pictures; move the rotate map around your finger, move it more than 50px to play the next (or previous), and bounce back when it is less than 50px
Specific function implementation:
1. Timer Auto-Roll Pictures
First declare an inde ...
Posted by deveed on Sun, 01 Dec 2019 15:22:40 -0800
pygame aircraft war using sprite layer to write BOSS should have life
BOSS said, to have life, then there is life.
In order to show his long life, boss often does the stupid thing is to show his pants to others. Come on, mortal, look at my blood volume.
The life bar can be drawn with a line with width or a rectangle filled with color.
First, the life value of the boss and the life value when f ...
Posted by Koobi on Sun, 01 Dec 2019 14:42:49 -0800
JDK source code - thread pool ThreadPoolExecutor
Basic data structure
AtomicInteger ctl: the first three bits are in thread pool state, and the last 29 bits are the number of active threads
CAS – compareAndIncrementWorkerCount: increase the number of active threads by 1 (new threads)
Blocking queue - BlockingQueue workQueue: work queue (the worker queue that needs to ...
Posted by Zergman on Sun, 01 Dec 2019 11:11:18 -0800
Page popup toast and loading
create-at 2019-04-04
All adopt single instance mode and are implemented by native js
Compatible with the old version of browser kernel, please modify the place where es6 syntax is used
loading
Code: all styles are created by js and injected into the head. If you need to modify, please modify the values of loadingstyle and loadingchildstyle imme ...
Posted by tony_l on Sun, 01 Dec 2019 08:51:15 -0800
java Concurrent practice: connection pool implementation
Introduction to pool technology
In the process of using database, we often use database connection pool instead of directly using database connection to operate. This is because the cost of creating and destroying each database connection is expensive, and pooling technology creates resources in advance, which are reusable, so as to ensure that ...
Posted by acirilo on Sun, 01 Dec 2019 04:03:57 -0800
Farmer chasing cattle -- the introduction to lost cattle B FS
BFS algorithm
Width first search Algorithm (also known as Breadth first search )It is one of the most simple graph search algorithms, which is also the prototype of many important graph algorithms. Dijkstra Single source shortest path Algorithm and Prim minimum spanning tree The algorithm adopts the similar idea of width firs ...
Posted by hthighway on Sun, 01 Dec 2019 01:29:42 -0800
python concurrent process
In the operating system, process is the smallest unit of resource allocation, and thread is the smallest unit of CPU scheduling.
Coroutine: it is the concurrency under single thread, also known as micro thread and fiber. The English name is coroutine. In a word: the cooperation process is a kind of user state lightweight thread, that is, the co ...
Posted by php_guest on Sat, 30 Nov 2019 17:41:15 -0800
20190127 - split a file into multiple new files
1. Split one file into five files
Train of thought:
1. First, split it into multiple new files. The new file name needs to be defined. Use file name? No to define the name of the new file
2. The content of the new file should be stored by file content. When the new file is written, use file content = '' to empty the new file content
3. When to ...
Posted by aveach on Sat, 30 Nov 2019 15:40:26 -0800