DomToImage implementation of Chrome plug-in to render output pictures with dom structure

I. description Sometimes, when I see the information of some web pages, I want to share it with my friends. Generally, I use the screenshot tool to do it directly. But when the content is shared for a long time, the screenshot is more painful, so I want to make such a plug-in You can render any dom structure in a web page as a picture 1. implem ...

Posted by Beauchy on Sun, 05 Apr 2020 06:32:42 -0700

Android flexible switch pull-down refresh (policy mode + reflection)

Recently, I want to change the pull-down to refresh, but I don't want to discard the previous one. I want to know whether both of them can coexist. Before using it, configure A to use A, and configure B to use B. (the principle is to control the use of corresponding strategies through reflection) It is very simple to use. You can directly swi ...

Posted by ShaileshD on Sun, 05 Apr 2020 06:05:10 -0700

Vue implementation of 6-digit password (IOS WebView carton optimization)

In ios system, when the native webview nesting H5 page is used, the completed 6-digit input password is written, and the solution to the password stuck problem is as follows: The following picture: The reason is because of CSS. In short, if the style left is negative, this problem will not appear in android visual i ...

Posted by ppgpilot on Sat, 04 Apr 2020 23:50:03 -0700

Implementation of Sogou AI API in Python 3

1, background a. Sogou has also released its own AI API, including identity card ocr, business card ocr, text translation and other APIs, with average accuracy in the initial test. b. Based on Python 3. c. It also has its own signature to generate this piece. With the foundation of goose factory, it is relatively simple to write. d. However ...

Posted by udendra on Sat, 04 Apr 2020 21:45:08 -0700

Step by step let you 55 necessary fragments to improve the efficiency of CSS development

Thank you for your reference- http://bjbsair.com/2020-04-01/tech-info/18398.html This article will record the CSS fragments that we usually use. Using these CSS can help us solve many practical project problems. It's suggested to like the collection of wall cracks for later reference Attach note link, read more high-quality articles in the pas ...

Posted by Vbabiy on Sat, 04 Apr 2020 18:24:33 -0700

Basic usage of angular js1.4 lazy loading

First, briefly explain the role of lazy loading: As the name implies, laziness means that resources that need to be loaded are not loaded the first time, but are loaded when the page needs to be used, usually to improve the efficiency of loading the first page. Here is a simple example of the basic use of lazy loading ...

Posted by ddemore on Sat, 04 Apr 2020 18:08:11 -0700

Simple use of PhotoView

Preface This is a picture viewing library, which can realize the function of picture browsing, support the function of gesture or click zoom, support the use in ViewPager, and allow the application to notify the users on the photos to click Wechat's head image can be enlarged by clicking, and many App's image display can be r ...

Posted by westexasman on Sat, 04 Apr 2020 14:16:08 -0700

Real router V4 & V5 interceptor (hook), static route, route view implementation

premise Before the v3 version of React Router, there was the onEnter hook function, which also supports the static routing configuration; however, after the v4 version, the hook function was removed, which is officially intended to be provided to developers, who can play it freely. In this case, we can only realize it ourselves. At present, th ...

Posted by sandrine2411 on Sat, 04 Apr 2020 13:35:56 -0700

Encapsulation of Android logstore Logger and the problem of AS3.0 log not being aligned

It doesn't matter how to introduce loggers. There are a lot of them on the Internet. This article records the encapsulation of loggers in use and the use of loggers in Android Studio 3.0 and above. Encapsulation of Logger When using any third-party library, if you can encapsulate it once to replace it later, o ...

Posted by yuan22m on Sat, 04 Apr 2020 12:10:11 -0700

Mobile wechat voice batch to text using Baidu voice recognition

Batch recognition of Baidu AI Cloud voice with WeChat Catalog Batch recognition of Baidu AI Cloud voice with WeChat Prepare tools and environment General idea Specific operation Export wechat voice file Processing exported voice files rename file Convert to pcm format Modify Demo code Previous changes Later changes Epilogue Code (fo ...

Posted by mjh513 on Sat, 04 Apr 2020 09:25:29 -0700