NanoVG Optimized Notes: The Secret of Five-fold Performance Improvement

NanoVG Optimized Notes nanovg As its name suggests, it is a very compact Library of vector drawing functions. Compared with hundreds of thousands of lines of code in cairo and skia, nanovg is less than 5000 lines of C language code, which is also called nano. The design, interface and code quality of nanovg are exemplary. The only drawback is t ...

Posted by Aaron_Escobar on Mon, 05 Aug 2019 20:58:04 -0700

Python 3 Web Crawler Actual Warfare-22, Using Urllib: Parsing Links

The Urllib library also provides parse, which defines standard interfaces for handling URLs, such as extracting, merging and linking transformations of various parts of URLs. It supports URL processing of the following protocols: file, ftp, gopher, hdl, http, https, imap, mailto, mms, news, nntp, prospero, rsync, rtsp, rtspu, sftp, shttp, sip, ...

Posted by pulkit123 on Sat, 03 Aug 2019 08:46:25 -0700

ARouter Source Code Adventures (III)

Connect ARouter Source Code Adventures (II) Preface Before analyzing the real runtime source code, I want to know that the next source code analysis ideas and the process of code introduction are all based on my own thinking habits, not in accordance with the strict flow chart step by step. ARouter.init Neither flow chart nor specific ana ...

Posted by johnsonzhang on Tue, 16 Jul 2019 13:46:29 -0700

python learning-input and output of files

Input and output of files File: The simplest type of data persistence is called flat file. It is just a byte stream under the name of a file, reading data from a file into memory, and then writing it from memory to a file. Before reading a file, you need to open it, then you can call a function to read and write data, and finally you ne ...

Posted by chowdary on Mon, 15 Jul 2019 15:07:50 -0700

Python Learning - File Input and Output

Input and output of files File: The simplest type of data persistence is called flat file. It is just a byte stream under the name of a file, reading data from a file into memory, and then writing it from memory to a file. Before reading a file, you need to open it, then you can call a function to read and write data, and finally you need to ...

Posted by flash99 on Mon, 15 Jul 2019 13:32:50 -0700

[Developing a Live APP from 0] 2.1 Fragment for High Level Packaging

This article is a serial of Jiang Zhibi, the author of the rookie nest. "Develop a Live APP Series from 0" to talk about the most popular live APP, how to complete the realization of a commercial project like "Tencent Live Broadcasting" [Developing a Live APP from 0] 2.1 Fragment for High Level Packaging[Developing a Live A ...

Posted by harlequeen on Sun, 14 Jul 2019 15:27:58 -0700

The pits encountered in the course of the project

Viewpager's adapter @Override public Object instantiateItem(ViewGroup container, int position) { BasePager basePager=basePagers.get(position);//Examples of each subpage View rootView=basePager.rootView;//Represents individual sub-pages //Call the initData () method for each page basePa ...

Posted by ogge1 on Sat, 13 Jul 2019 15:47:21 -0700

Source Code Analysis of Fragment Operating Mechanism (2)

Reprint address: http://blog.csdn.net/yuanzeyao/article/details/52895029 If you like my article, you can pay attention to the left. WeChat Public number, I will regularly push articles and new ones.   In the previous article, we analyzed Fragment's life cycle in detail, and explained how Activity controls Fragment's life cycle. Acc ...

Posted by raytri on Sat, 13 Jul 2019 11:39:59 -0700

MVP Summary and Example Programming of Android Framework Pattern

Summary of MVP for Android Framework Patterns Android Framework Model MVC and MVP, which have been summarized before, are seldom used in the development, and little attention has been paid to them. Many codes are written at will, but now the development requirements follow the MVP design pattern, so I want to make a summary of MVP framework d ...

Posted by sp2hari on Fri, 12 Jul 2019 18:53:37 -0700

Android Drawer Layout High Imitation QQ5.2 Two-way Side Slide Menu

Original address: http://blog.csdn.net/lmj623565791/article/details/41531475/ For reprinting, please indicate the source: http://blog.csdn.net/lmj623565791/article/details/41531475 This article is from: [Zhang Hongyang's blog] 1. Overview I wrote one before. Android High Imitation Q QQ5.0 Side Slide Menu Effect Custom Control Invasi ...

Posted by stepn on Thu, 11 Jul 2019 16:13:27 -0700