Python from a line to 30 lines of code within the fun of project recommendations! [continuous update]

catalog A line of code to realize the cardioid pattern Two lines of code to make special dynamic QR code Four lines of code generate exclusive word cloud: Draw polygonal lines in five lines of code: Ten lines of code to draw sunflower: Twenty lines of code to realize the game of Jingzi chess 2 ...

Posted by zoran on Sat, 27 Jun 2020 19:15:05 -0700

Playing with Stream in Java 8

Playing with Stream in Java 8 By litesky Link: http://www.jianshu.com/p/11c925cdba50 I believe you have heard about Java8 Stream, but you may not be able to use it or you are not familiar with it. This article will take you to use it from scratch, step by step, and lead you to the peak of Stream. Operator What are operators? Operator is a k ...

Posted by michibk on Sat, 27 Jun 2020 19:14:03 -0700

Design pattern principle

Design pattern principle 1. Overview One object should have the least knowledge of other objects The closer the relationship between class and class, the greater the coupling degree Demeter principle is also known as the least known principle, that is, the less a class knows about its own dependent c ...

Posted by evo4ever on Fri, 26 Jun 2020 21:22:54 -0700

[Learning Notes] FHQ-Treap

Balanced Tree and FHQ-Treap A balanced tree (i.e. a balanced binary search tree) is a series of metaphysical operations that keep the binary search tree (BST) in a more balanced state and prevent it from degenerating under certain data (when BST has monotonic insertion values, the tree is unbalanced and degenerates into \(\mathcal{O}(n)\) once ...

Posted by spidie on Fri, 26 Jun 2020 17:35:58 -0700

Kubernetes cluster: life cycle of (k8s) pod + init container + probe

1, Pod life cycle • Pod can contain multiple containers in which applications run, and can also have one or more Multiple Init containers started before the application container. The Init container is very similar to ordinary containers except for the following two points: • they always run t ...

Posted by JackSevelle on Thu, 25 Jun 2020 23:38:32 -0700

Chapter 5 - Spring of Architecture Volume 3-spiel

Article catalog 1, Evaluation 1. EvaluationContext 2. Configuration 2, Use 1. Based on XML 2. Based on annotation 3, Grammar 1. Text 2. Property, array, set 3. In line List 4. In line Maps 5. Array constructor 6. Method 7. Operator 8. Type 9. Constructor 10. Variables 11. Functions 12. Bean refe ...

Posted by intercampus on Wed, 24 Jun 2020 19:19:55 -0700

What are the mechanisms, differences and meanings of mutually exclusive access to Linux multithreaded global variables?

Write before: Why write this article, I began to understand these three quantities very hard, gnawed for a long time "Modern Operating System", also read a lot of blogs, and finally a little experience.This article is based on that brick book and some blogs, with a personal summary and underst ...

Posted by SsirhC on Wed, 24 Jun 2020 18:49:52 -0700

Chain lists, trees, diagrams, and recursive notes in data structures

1. Structures Structures are important in data structures, so first understand the structure-related knowledge points. struct LNode{ int data; char name[20]; }; //struct is the keyword that defines the structure, and LNode is the name of the structure //For example, create an object for the previous ...

Posted by Lonepig on Wed, 24 Jun 2020 18:23:56 -0700

JavaScript branch structure statement

Branch structure statement in JS JS code should be executed from top to bottom Branch structure statement: when a part is executed, select whether to execute a section of code according to the condition Conditional branch statement in JS - if There are four ways to write 1, if branch 1. if state ...

Posted by alecapone on Wed, 24 Jun 2020 00:55:41 -0700

Operational commands for elasticsearch indexes (core concepts, operational statements, and paging)

Article Directory 1. Description of put, post, delete, get methods 2. Data Models and Core Concepts 3. Basic operation of index 1. Create an index 2. View all current indexes 3. Modify (update) the document 4. Delete 5. Add data 6. Bulk operation data bulk 8. Bulk Read Documents 9. Search for data ...

Posted by Nukeum66 on Tue, 23 Jun 2020 09:06:32 -0700