Android Imitation Flipboard Animation

@(Alu) 1. on the original The animation effect in Filpboard I saw in Hencoder's draft a few days ago: Filipboard.gif First bb sentence: read this article at the same time, if you feel that I write vague read not understand can be directly pulled to the end of the text, with the complete code to see step by step. 2. implementation Overall ...

Posted by herbally on Wed, 15 May 2019 23:22:44 -0700

[Revisiting the basics] 12. Use objects

This article is the twelfth in a review of the basic series. Today's feeling: need to sum up 2018. These days, a heavy cold and fever, rest at home for several days, injuries. Series catalogues: [Review Data] ES6/ES7/ES8/ES9 Data Compilation (Personal Compilation) Grammar and Data Types 2. Process control and error handling [Revisiting the F ...

Posted by wheakory on Wed, 15 May 2019 10:15:35 -0700

Android programmers often encounter algorithmic problems, seven commonly used algorithms

Common Algorithms for Android 1. Insertion sort algorithm The basic idea of insertion sorting is that in the process of traversing the array, assuming that the elements before the ordinal number i, i.e. [0.i-1], have been sorted out, we need to find the correct position K of the element x corresponding to i, and in the process of s ...

Posted by BAM1979 on Wed, 15 May 2019 07:25:09 -0700

Python Road [Part 5]: File Processing Based on Python

Reading catalogue I. File Operation 1, introduction Computer system is divided into three parts: computer hardware, operating system and application program. Applications written in python or other languages that want to save data permanently must be stored in the hard disk, which involves the application to operate hardware. As we all know ...

Posted by cbrknight on Tue, 14 May 2019 12:58:36 -0700

ES Learning Record 3 - Search Interface in ES

5. search _ES provides 2 search methods: REST-style request URI, which takes the parameters directly; Encapsulated in request body, this way can define a more readable JSON format; _The case of URI search through REST style is as follows: curl -X GET "localhost:9200/bank/_search?q=*&sort=account_number:asc&pretty" S ...

Posted by unify34 on Sun, 12 May 2019 03:42:54 -0700

JAVA concurrent programming: CAS and AQS

When it comes to JAVA concurrent programming, you have to talk about CAS(Compare And Swap) and AQS (AbstractQueued Synchronizer). CAS(Compare And Swap) What is CAS? CAS(Compare And Swap), that is, compare and exchange. CAS operation consists of three operands: memory location (V), expected original value (A) and new value ( ...

Posted by TGLMan on Sun, 12 May 2019 00:41:42 -0700

Learning notes from java to kotlin

Preface In the past, most of android development used java, but because of the introduction of kotlin, the company began to use kotlin, so here is a note to learn kotlin. Basic grammar Basic types There is no basic type in kotlin, where everything is an object, which also leads to its lack of automatic conversion function ...

Posted by peri on Sat, 11 May 2019 22:54:48 -0700

ES6 grammar commonly used in work

let and const   In JavaScript, we used to use key var to define variables. After ES6, we added two keywords to define variables, let and const. For variables, variables defined by var in ES5 will be raised to all functions and statements in scope, while variables defined by let in ES6 will not. Variables declared by let wil ...

Posted by Beatnik on Sat, 11 May 2019 07:48:21 -0700

Gospel of Redis lazyfree big key deletion

background Severe users of redis should have encountered the use of DEL commands to delete larger keys, or when using FLUSHDB and FLUSHALL to delete databases containing a large number of keys, resulting in redis blocking; in addition, redis in cleaning up expired data and eliminating memory overrun data, if it happens to hit a large number of ...

Posted by maddali on Sat, 11 May 2019 02:38:55 -0700

ES678&Webpack&Babel (Medium) Object | String | Extension of Arrays for Front End Notes &New Features of Functions &Classes

1. Extension of Objects 1.1 Object Property Name Expression ES6 can use [] to wrap the name of a key in JSON.In this case, the key uses an expression as the property name (which is evaluated as a variable), and the key value must be a string. var a = 'name' var obj = { [a] : "Xiao Ming", age:12, sex:"male" } console.log( ...

Posted by platnium on Fri, 10 May 2019 20:42:06 -0700