269 JavaScript utility functions to improve your work efficiency

130.blob to file  /**     *  @param { blob } blob     *  @param { string } fileName        */    export const blobToFile = (blob, fileName) => {     blob.lastModifiedDate = new Date();     blob.name = fileName;     return blob;     }; 131.file to base64  /**     * @param { * } file Picture file       ...

Added by Mikester on Mon, 15 Jun 2020 08:00:19 +0300

Write an infinite list using the PlaceHolderVidew Library

Write an infinite list using the PlaceHolderVidew Library First, let's look at the picture. Here's what I want to do. Overview of the objectives of this experiment: 1. Write a json file to store the students'information. The source will simulate loading json data from the Internet and then popula ...

Added by dianaqt on Thu, 11 Jun 2020 19:15:23 +0300

Recommend a lightweight but efficient open source windows hotkey scripting language Autohotkey

Words written in the front Autohotkey is a lightweight, small but efficient, free and open source windows hotkey scripting language. Game manipulation, mouse operation, keyboard shortcut redefinition, shortcut phrases, etc. only you can't think of it, but you can't do it without it. The artifact in artifact is too late to meet. install Download ...

Added by mikeylikesyou on Tue, 09 Jun 2020 10:12:22 +0300

How to identify and read American driver license information on Android devices

According to the American Association of motor vehicle managers (AAMVA https://www.aamva.org/DL-ID-Card-Design-Standard/ )According to the regulations of PDF417, the US driver's license uses PDF417 code, as shown in the following figure: Google Mobile Vision SDK The Google service supports driver license resolution. You can find the correspond ...

Added by alexdoug on Tue, 02 Jun 2020 18:32:15 +0300

Super simple way to create your own slide menu

Then you can click the menu to change the icon. For example, click happy, and the homepage will become a smiling face. The implementation process is super simple Step 1: you need to use two new controls: ToolBar and DrawableLayout First, I need to write three xml layout files. The layout file here is embedded w ...

Added by runelore on Tue, 26 May 2020 18:18:27 +0300

Sharing of learning notes in uni

Table of contents 01. Summary of problems encountered 02. About layout settings 03. Basic grammar summary 04. About interaction 06. About returning data 07. About network requests 08. About page refresh 09. Notes 10. To be solved and considered 01. Summary of problems encountered In my page, there is a problem defining the class of view as l ...

Added by astaroth on Sun, 24 May 2020 05:12:06 +0300

Android Handler mechanism: how ThreadLocal works

1, Handler mechanism and ThreadLocal In the Handler mechanism, we will encounter a very important class in Looper: ThreadLocal, ThreadLocal is not a thread, its function is to store data in each thread. When the handler is created, it will get the Looper of the current thread to construct the message loop system. The way to get it is through ...

Added by PJ droopy pants on Fri, 22 May 2020 08:29:05 +0300

Android development disable notification bar drop-down

I've had a headache for several days with the requirement of applying the disable notification bar to pull down statusbar is used, but the effect is not very satisfactory Other methods have been tried but have no effect, so let's change our thinking The way to do this is to make a transparent window in the notice bar area, so that when you pull ...

Added by colombian on Wed, 20 May 2020 19:09:09 +0300

Stop using a single framework, XUtils - you deserve it!

Details of XUtils 1, What are XUtils? brief introduction Configuration before use 2, XUtils loading pictures ImageOption Load network picture Load Android resource pictures Load sd card picture 3, XUtils request network RequestParams get request post request 4, Use summary ...

Added by u01jmg3 on Wed, 20 May 2020 13:51:48 +0300

appium -- positioning package

Automated testing is simple, fast and easy to maintain. The most important part of automatic maintenance is element positioning. thinking Before we write code, we should make clear our thinking, so that when we write code again, we won't know how to start. 1. Manage elements and positioning methods through yaml (or other tools) 2. Encapsul ...

Added by NEWDAY on Sat, 16 May 2020 08:18:03 +0300