Form verification is an indispensable link when we submit a form. The common verification method is to judge each parameter separately, but this is not only troublesome, but also if we write too many if parameters, the code will be bloated and the readability will be poor. Take login as an example, supp ...
Posted on Sat, 22 Feb 2020 09:33:57 -0500 by plazz2000
The streams mentioned above are all serial streams, which are executed on a thread. Next, we introduce two ways to obtain parallel flow
1. Get parallel stream directly
Parallel stream is actually a parallel execution stream. It can improve the execution speed of multithreaded tasks through the defa ...
Posted on Sat, 22 Feb 2020 05:42:02 -0500 by jaydeesmalls
USB Device Framework
Standard USB Descriptor Definition
1. Device descriptor (struct USB? Device? Descriptor)
2. Structure USB config descriptor
3. Struct USB interface Assoc descriptor
4. Struct USB? Interface? Descript ...
Posted on Sat, 22 Feb 2020 05:12:08 -0500 by pagie
Algorithm learning notes - sorting
This is a part of the notes that have been sorted out recently in the learning process. There is no picture demonstration. For more vivid display, please see this Daniel's sorting blog. Animation demonstration of sorting algorithm
Some common array sorting metho ...
Posted on Sat, 22 Feb 2020 04:41:10 -0500 by kurdishvoice
1, Method definition
In many cases, it is possible to execute some code repeatedly. Methods are also called function s in some books. It should be noted that there is a precondition for this method definition: the method is defined in the main class and directly called by the main method.
Basic defi ...
Posted on Sat, 22 Feb 2020 04:17:30 -0500 by ast3r3x
1. heapq heap sorting algorithm
Heap is a tree data structure, in which the child node and the parent node have an orderly relationship. Binary heap can be represented by an organized list or array, where the child elements of element N are located at 2*N+1 and 2 * N + 2 (the index starts from 0). This layout allows the heap to be reorganized i ...
Posted on Sat, 22 Feb 2020 01:50:56 -0500 by discorevilo
Read in Text
Word Separation Using Existing Methods
Language Model Dataset
Sampling of time series data
Basis of Circulating Neural Network
Initialize model parameters
Posted on Fri, 21 Feb 2020 22:28:45 -0500 by umol
An overview of the singleton pattern
Ensure that a class has only one instance and provide a global access point to that instance.
2. Advantages of the singleton mode:
1) The performance overhead of the system is reduced because the singleton mode only produces one instance object.When th ...
Posted on Fri, 21 Feb 2020 21:04:40 -0500 by khurramijaz
Modularization of Nodejs
In the process of our daily web development, modularization can not be lost. Each of them has its own way of implementation. Noejs follows the commonjs specification.
Think of every file as a module
If a module needs to expose some data or functionality for use by other mo ...
Posted on Fri, 21 Feb 2020 19:59:30 -0500 by Skepsis
HTML+JS+CSS to realize student information management system
If you don't speak much, you can directly see the effect. This code is complex. I hope you ca ...
Posted on Fri, 21 Feb 2020 10:23:27 -0500 by Copernicus