Google Protobuf Encoding and Decoding (Serialization/Deserialization) Framework
Encoding/decoding is also called serialization/deserialization in Java. The serialization and deserialization technology of Java itself generates too much binary stream and has low conversion efficiency. It is generally not suitable for the encoding framework of remote cross-node calls.
Protobuf, known as Protocol Buffers, comes from Google Op ...
Added by Hallic7 on Sat, 13 Jul 2019 05:43:15 +0300
Swift: Night Mode Implementation
There are four key points in the way of realization:
1. Define a protocol that specifies various ways to achieve the theme color.
2. Define a topic class, which contains two key attributes, style and colors. style represents the monitoring of schema changes, while colors can return the corresponding color class according to style.
3. Extend ...
Added by ryanwood4 on Sat, 13 Jul 2019 03:59:27 +0300
WCF message compression
For WCF applications, compressing request and reply messages before transmission can not only reduce network traffic, but also improve the performance of network transmission.
I. Message Compression Scheme II. Components for Data Compression and Decompression Components for message compression and decompression Components for Compression and De ...
Added by blommer on Sat, 13 Jul 2019 01:26:26 +0300
ES6 deconstruction assignment
Deconstruction assignment is an extension of assignment operator, which can extract attributes/values from objects/arrays and assign them to other variables.
1. Deconstruction assignment of arrays
1. Basic usage
As long as the patterns on both sides of the equal sign are the same, the variables on the left are assigned corresponding value ...
Added by Pro Ninja on Fri, 12 Jul 2019 21:40:33 +0300
es6 Learning--Analytical Assignment of Variables
Deconstruction assignment of arrays
ES6 allows you to extract values from arrays and objects according to a certain pattern and assign variables, which is called Destructuring.
This is called "pattern matching". As long as the patterns on both sides of the equal sign are the same, the variables on the left are assigned corre ...
Added by SkyRanger on Fri, 12 Jul 2019 00:07:59 +0300
Event delegation or event proxy details in js (reload)
Event delegation or event proxy details in js
This article was reproduced from ( http://www.cnblogs.com/liugang-vip/p/5616484.html)
Causes:
1. This is a classic type of front-end interview. It is helpful to go to a small partner to find a job.
2. Actually, I have never understood it. Writing this is for the purpose of remembering, and it i ...
Added by trial_end_error on Thu, 11 Jul 2019 20:08:07 +0300
shell base-bash variable-numerical operation and operator
In the Linux shell, the type of the value of a variable is a string by default and cannot be directly numerically calculated.
[root@localhost ~]# a=9
[root@localhost ~]# b=15
[root@localhost ~]# c=$a+$b
[root@localhost ~]# echo $c
9+15
In order to perform numerical operations on variables, special methods are needed.
1. declare declares ...
Added by Webxplosion on Thu, 11 Jul 2019 03:57:24 +0300
Analysis of MyBatis Dynamic SQL Bottom Principle
When we use mybatis, we write sql statements in xml.
For example, this dynamic sql code:
<update id="update" parameterType="org.format.dynamicproxy.mybatis.bean.User">
UPDATE users
<trim prefix="SET" prefixOverrides=",">
<if test="name != null and name != ''">
name = #{name}
</if> ...
Added by studgate on Thu, 11 Jul 2019 02:29:47 +0300
Internal method of reading Zepto source code
Array method
Definition
var emptyArray = []
concat = emptyArray.concat
filter = emptyArray.filter
slice = emptyArray.slice
zepto started by defining an empty array, emptyArray, to get concat, filter, slice methods of the array
compact
function compact(array) {
return filter.call(array, function(item) {
return item != null
}) ...
Added by inferium on Wed, 10 Jul 2019 23:32:43 +0300
Rendering Configurable Forms with Vue--A Questionnaire Platform Project
In recent days, there has been an urgent project to make an internal version of the questionnaire star. It is equivalent to a platform for editing questionnaires and providing questionnaires for displaying data statistics. The whole project is not long-term, in line with the principle of accumulation and accumulation, the process of thinking a ...
Added by hellonoko on Tue, 09 Jul 2019 02:29:59 +0300