Classic sort insert, hill, select, heap, bubble, fast, merge
Introduction of sorting
When processing data, it is often necessary to search. In order to search quickly and accurately, the data to be processed is usually required to be arranged in order according to the size of key words, so as to adopt efficient search methods.
Basic concept of sorting
1. rank ...
Posted by LoganK on Sun, 16 Feb 2020 09:12:02 +0100
Linux core built-in management commands
4.1 placeholder ":
(1) An example of using placeholders in Shell scripts
if [ $i -eq 1 ] #Conditional expression
then
: #If the if judgment statement is used in the Shell script, some operations are usually performed after the judgment is successful, but sometimes it is not known what operations are performe ...
Posted by robindean on Sat, 15 Feb 2020 20:16:56 +0100
Using shell+crontab to clean up logs regularly
Background introduction
Scan the specified log directory every hour, empty the file directly after it exceeds 100M, and use it as a temporary means of operation and maintenance.
The source code is mainly composed of two functions:
reviewLogs() determines the log size and clears it;
getdir() determines whether it is a dire ...
Posted by Erestar on Tue, 28 Jan 2020 18:02:16 +0100
Reuse of component state logic: render props mode and higher-order components
Article directory
1, Render props mode
1.1 overview of react component reuse
1.2 thinking analysis
1.3 operation steps
1.4 children instead of the render attribute
1.5 code optimization
2, High order components
2.1 overview
2.2 thinking analysis
2.3 use steps
2.3 settings ` displayName`
2.4 transf ...
Posted by abduljan on Mon, 27 Jan 2020 08:52:43 +0100
linux-3. User and user group management
man useradd can view the following useful information
1, User profile
1.1 user information file / etc/passwd
root: x:0:0:root:/root:/bin/bash
field
Effect
1st field
User name
2nd field
Password flag x: indicates that the user has a password, and finally goes to / etc/shadow to find the passw ...
Posted by Andrew B on Sat, 18 Jan 2020 07:52:56 +0100
Lecture on Linux Account Management
1. Manage user accounts
1. Overview of user accounts
Linux controls access to resources based on user identity.
2. User Account Management
1) User Account
Super user (root);
Ordinary users;
Program user;
UID (User IDentify) user identification number;
(1) User account file/etc/passwd
The /etc/passwd file is used to hold basic informa ...
Posted by Iank1968 on Thu, 16 Jan 2020 21:17:57 +0100
Seven sorting algorithms
Seven sorting algorithms
Direct insert sort
Selection sort
Selection sort
Bubble sort
Quick sort
Merge sort
Heap sort
Direct insert sort
When the I (I > = 1) element is inserted, the preceding array[0],array[1] , array[i-1] has been ordered. At this time, use the sorting code of array[i] and ...
Posted by poe on Thu, 16 Jan 2020 16:02:38 +0100
3 minutes to teach you how to make a simple word cloud with python
First you need to install three packages:
#Installation: pip install matplotlib
#Installation: pip install jieba
#Install pip install wordcloud
1. Make a word cloud of the English alphabet
Design sketch:
Code implementation:
import matplotlib.pyplot as plt
import jieba
from wordcloud import WordCloud
# 1. Read txt text data
text = open(r'te ...
Posted by Spoiler on Mon, 06 Jan 2020 07:05:32 +0100
Wake up delay of IDLE Alarm in Doze mode
1. Simulation enters into Doze mode
Set no charge state
adb shell dumpsys battery unplug
Set forced entry depth module
adb shell dumpsys deviceidle force-idle deep
Set alarm log on
adb shell dumpsys alarm log on
Then we can connect USB and view the log behavior dynamically in logcat.
2. IDLE Alarm wake-up delay in ...
Posted by gilgimech on Thu, 02 Jan 2020 18:15:15 +0100
Zr × 317. [18 increased by 2] a (Computational Geometry dichotomy)
meaning of the title
Sol
It's a very good question. Fortunately, I didn't play this game. Otherwise, I guess I will die on this question qwq
It doesn't mean how difficult it is. The key is that there are too many details. wcz and I had a chat about my ideas. Then he wrote it all night and didn't call out the qwq
It's quite a routine ...
Posted by caaronbeasley on Thu, 02 Jan 2020 01:41:17 +0100