Fifty lines of code to get the bomb screen effect

Preface In recent years, the bullet curtain has slowly become popular. We can see the image of the barrage when we watch video or live broadcasting on the internet. Sometimes the content of the barrage is even more wonderful than the content of the video itself. I also like the marble curtain very much. It's common to brush a marble curtain at ...

Added by cgchris99 on Tue, 18 Jun 2019 23:42:54 +0300

Android Implements IOS11 Control Center Schedule Bar

IOS 11 has released beta, and I believe some of the partners with the iphone are eager to upgrade.So in this article, we use a simple custom View to implement a very novel progress bar in the control center similar to iOS 11. Let's first look at the target effect map and the final result. Target rendering Achieving results Custom Property A ...

Added by CtrlAltDel on Tue, 18 Jun 2019 21:26:43 +0300

Echarts Basic Chart--Column Chart

First of all, the old rule is to quote Echarts first when using Echarts. At this time, we have two ways (I forgot to mention it last time, this time add it). One is to introduce labeled single file. This is the way when introducing graph. The second way is to use modular single file. Both cmd and AMD can be used, but it should be noted that Ech ...

Added by DustParticle on Tue, 18 Jun 2019 02:46:56 +0300

Processing of Lists and Keys

Processing of Lists and Keys First, let's review how to traverse lists in JavaScript. In the following code, we use the map() function to get an array of numbers and double their values. We assign the new array returned by map() to the variable doubled and record it: const numbers = [1, 2, 3, 4, 5]; const doubled = numbers.map(item = ...

Added by reag27 on Tue, 18 Jun 2019 02:09:41 +0300

Arbitrary combination judgments are still understood with the Switch? Bit operator~

Scenario Reproduction Many times, when we write programs, there will be such a situation, that is, code multiple-choice operations. For example, the following operations. For example, there are four view views (A, B, C, D, respectively). When the button a is clicked, the background color of view A and B changes. Whe ...

Added by jokerofsouls on Mon, 17 Jun 2019 21:28:32 +0300

Android Attribute Animation: This is a very detailed summary of Attribute Animation & Introduction

Preface The use of animation is a common knowledge in Android development This article will introduce in detail the principle of attribute animation in Android animation Animation Types A series of articles on Android animation For the use of animation, please refer to the article:Android Attribute Animation: This is a very detailed su ...

Added by tc48 on Mon, 17 Jun 2019 00:08:27 +0300

JavaScript data structure: tree

Translated from Cho S. Kim Articles: Data Structures With JavaScript: Tree Tree is one of the most commonly used data structures in web development. This sentence applies to both developers and users: developers create a DOM through HTML, and users consume network information through DOM. Further, the text you are reading is rendered in a br ...

Added by phphead on Sun, 16 Jun 2019 01:52:45 +0300

Android_animation mechanism

Android animation is an indispensable requirement in development. With the increasingly complex animation effects of designers, it is necessary to master animation skills as a qualified Android engineer. Frame-by-frame animation Frame-by-frame animation is to make use of the effect of human visual staying, in constant change, feel the effect ...

Added by playaz on Sat, 15 Jun 2019 23:37:05 +0300

Explanation and application of python argparse Library

argparse is a library for parsing command-line options, parameters, and subcommands     Source code comes from Lib/argparse.py   Main functions: 1. Make it easy for users to write command lines 2. argparse knows how to parse these parameters from sys.argv for the parameters required by the program. 3. Aiming at the invalid parameters given to t ...

Added by lrdaramis on Sat, 15 Jun 2019 03:40:23 +0300

Schema Implementation of Distributed Service Dubbo from Initial to Proficient

Preface Although Dubbo has been used for a long time, in fact, its understanding is still a drop in the bucket. Last month, I read through the Netty Actual Warfare (rough understanding), and suddenly I have the desire to interpret the Dubbo source code. If it doesn't wait for me, let's get started. Friends familiar with Dubbo may know that it u ...

Added by matthijs on Sat, 15 Jun 2019 03:24:01 +0300