Regular expression to verify mobile phone number, applicable to the latest 166, 198 and 199 segments

Regular expression verification mobile number In August 2017, China Telecom obtained section 199, China Mobile obtained section 198 and China Unicom obtained section 166. Analysis of operator name segment: Mobile number: 13 [0-9], 14 [5,7], 15 [0, 1, 2, 3, 5, 6, 7, 8, 9], 17 [6, 7, 8], 18 [0-9], 170 [0-9] ...

Posted on Wed, 01 Apr 2020 15:47:36 -0700 by daneth1712

Develop a greedy snake in wechat games

I have also written a greedy Snake game, but it is the operation of dom. Wechat game is developed based on canvas using js syntax. In order to save trouble, we search a cannibal snake based on canvas directly on the Internet. Thank you very much It's not gadobo's Treasure (from Jianshu) Article address: https://www.jianshu.com/p/ba5031c20cd ...

Posted on Wed, 01 Apr 2020 14:36:26 -0700 by susrisha

Play ListView page to load more effects

This is the original work of the author (Shi Yan). For reprint, please indicate the source: http://blog.csdn.net/a1002450926/article/details/50620598 When you develop mobile APP applications, I believe that listview is the most widely used control. When we use this control, if the current amount of data loaded is large, we will generally d ...

Posted on Wed, 01 Apr 2020 11:42:47 -0700 by backyard

JS implements image base64 to blob object, compress image, preview image, rotate image to correct angle

base64 to blob object /** Convert base64 to file object * @param {String} base64 base64 Character string * */ var convertBase64ToBlob = function(base64){ var base64Arr = base64.split(','); var imgtype = ''; var base64String = ''; if(base64Arr.length > 1){ //If it's a picture base64,Remove header informa ...

Posted on Mon, 30 Mar 2020 10:15:17 -0700 by cityguru

GPUImage source code analysis of Meiyan heavyweight Technology

When it comes to GPU based image processing and real-time filter, you will surely think of the famous GPUImage. This project really provides a lot of convenience for the follow-up development, and basic image processing tools are all available. But learning from GPUImage's project structure can help us a lot. GPUImage project structure GPUImage ...

Posted on Mon, 30 Mar 2020 06:57:16 -0700 by scottshane

Use and arrangement of wechat applet pull-down refresh

1, enablePullDownRefresh=true Pull down refresh is a common operation in mobile applications. The drop-down refresh operation is built into the applet framework. The drop-down animation is of three point style. Currently, there is no display for modifying the drop-down progress bar. Note: it is better to set the page background in the config ...

Posted on Sun, 29 Mar 2020 11:15:09 -0700 by AngelG107

Android gets the pit of pictures in the gallery

Recently, a function has been implemented to upload data to the background of the server for the pictures taken or the pictures in the gallery. It's OK to take pictures, but the pictures in the gallery can't get files. Now record your own pit. My code implementation //Select from the album private void choseHeadImage ...

Posted on Fri, 27 Mar 2020 07:49:17 -0700 by cheesehead

How to use the ystrix component of SpringCloud

Circuit Breaker Solution Spring Cloud Hystrix Component. Take 2.2.0.release as an example to show you how to get started with this component. Core concepts hystrix: is commonly referred to as a circuit breaker component hystrix-dashboard: breaker monitoring statistics display panel component Turbo: Multi-node breaker statistics consolidation d ...

Posted on Thu, 26 Mar 2020 21:28:31 -0700 by ronverdonk

C ා net uses openxml to write objects to Excel

C ා net uses openxml to write objects to Excel C ා net uses openxml to write objects to Excel   ------------------------------------------------------------ -------------------------The end of the article--------------------- ----------Effect 1 (template file writes to collection object)------ ----------Effect 2 (new file written to collection ...

Posted on Sat, 21 Mar 2020 07:53:24 -0700 by plutoplanet

Detailed explanation on how to realize the live broadcast small window of global suspension window such as douyu and station B

When we need to return to or exit from the studio for live broadcast recently, we need to open a small window to continue live video in the whole world, and see the renderings first. We have investigated the current mainstream live platforms, such as douyu, BiliBili and other apps, which are all made by WindowManger (you can check whether ther ...

Posted on Fri, 20 Mar 2020 09:18:14 -0700 by stry_cat