Simply use commit - to standardize your commit message

Recently, I used git to develop the learning specification and found a relatively easy-to-use tool to standardize comments. Record it. Generally speaking, the commit message should be clear and explain the purpose of this submission, so some specifications are needed to make these comments readable. Commit is a relatively easy-to-use tool recen ...

Posted by Pavel_Nedved on Tue, 09 Nov 2021 14:34:06 -0800

Leetcode 488 Zuma games

You are participating in a variant of Zuma game. In this Zuma game variant, there is a row of colored balls on the desktop. The color of each ball may be red 'R', yellow 'Y', blue 'B', green 'G' or white 'W'. You also have some colored balls in your hand. Your goal is to empty all the balls on the table. Each round: Choose any one of the col ...

Posted by wisewood on Tue, 09 Nov 2021 14:21:41 -0800

java Dynamic Proxy

proxy pattern Proxy mode is one of 23 design modes. It refers to A mode in which an object A can have the same behavior as B by holding another object B. In order to open the protocol to the outside world, B often implements an interface, and A will also implement the interface. However, B is A "real" implementation class, while A is ...

Posted by Stoneguard on Tue, 09 Nov 2021 14:21:14 -0800

Summary of knowledge points of ecarts data visualization

Knowledge points of ecarts data visualization (I) 1. Use steps (1) Import the echorts.js file (2) Prepare a box to present the chart (3) Initialize the ecarts instance object (parameters, dom elements, which determine the final rendering position of the chart) var mCharts = echarts.init(document.querySelector('div')) (4) Prepare configur ...

Posted by nagasea on Tue, 09 Nov 2021 14:21:01 -0800

ceph RBD block storage general operation

View pools Create a pool containing 64 PGs and 64 PGPS       [root@node-1 ~]# ceph osd pool create ceph-demo 64  64 pool 'ceph-demo' created [root@node-1 ~]# ceph osd lspools 1 ceph-demo View pg and pgp [root@node-1 ~]# ceph osd pool get ceph-demo pg_num pg_num: 64 [root@node-1 ~]# ceph osd pool get ceph-demo pg ...

Posted by Andy17 on Tue, 09 Nov 2021 14:11:50 -0800

Kotlin actual combat [v] anomalies in kotlin

1, How kotlin throws exceptions Exception handling in Kotlin is similar to that in Java or other languages. A function can end normally or throw an exception when an error occurs. The function caller catches the exception and handles it; If not, the exception is thrown up the call stack again. The basic form of exception handling statements i ...

Posted by Jtech on Tue, 09 Nov 2021 14:04:02 -0800

Unity and database

Install database - connect your computer host - create database 1, Database design 1. How to represent the relationship between databases in database design? relational model 2. What are the relationships between entity sets X and Y? One to many, one to one, many to one, many to many 3. What are the functions of the three paradigms of database ...

Posted by kobayashi_one on Tue, 09 Nov 2021 14:03:07 -0800

Vue learning - preliminary understanding

Vue learning (I) - preliminary understanding Source: PC personal blog 1. Front rear relationship Vue is a progressive framework for building user interfaces, which can be applied layer by layer from bottom to topMVVM mode Model: model layer, representing jsView: view layer, DOMViewModel: middleware connecting views and data. Vue.js is t ...

Posted by mcl on Tue, 09 Nov 2021 13:53:59 -0800

OpenCV basic tutorial - image digitization

1. Image digitization 1.1 Mat class in initial OpenCV 1.1.1 initial Mat The constructor of Mat class is as follows: Mat(int rows, int cols, int type) Where, type represents the type, including the number of channels and their data types. CV_8UC(n): uchar type occupying 1 byte CV_8SC(n): char type occupying 1 byte CV_16UC(n): ushor ...

Posted by mesz on Tue, 09 Nov 2021 13:47:13 -0800

Learning notes of Effective C + + (Clause 18: make the interface easy to be used correctly and not easy to be misused)

Recently, I started to watch Effective C + +. In order to facilitate future review, I specially took notes. If I misunderstand the knowledge points in the book, please correct!!! Three rules must be observed when designing a good interface: We must consider what kind of errors the user may makeThe interface should be designed consistentlyDon' ...

Posted by yacaph on Tue, 09 Nov 2021 13:39:28 -0800