Singleton pattern of JS design pattern

Definition Limit the number of instances of a class to one. If the instance does not exist, you can create a new instance of the class through a method. If the instance already exists, it will simply return the reference of the object. Applicable scenario Objects that need to be instantiated frequently and then destroyed. Objects that frequent ...

Posted on Sun, 01 Dec 2019 14:46:19 -0500 by amin1982

Function calculation php runtime compilation non built in extension

php runtime using FAQ problem The php version in the function calculation php runtime is 7.2.7. There are many built-in extensions in php runtime, as follows: "Core", "date", "libxml", "openssl", "pcre", "zlib", "curl","filter", "hash", "readline", "Reflection", "SPL", "session","xml", "standard", "mysqlnd", "bcmath", "bz2", "calendar","ctype ...

Posted on Sun, 01 Dec 2019 14:43:18 -0500 by Anant

Raspberry pie + dlna

origin Raspberry pie (sent by a good friend) was left there for a long time to eat ashes, and finally bought a high-speed sd card to install the Raspbian system. I began to plug in the high-definition cable to use the TV as a monitor, and found that the display effect was poor, so I gave up. Install shadowlocks (required) pip insta ...

Posted on Sun, 01 Dec 2019 14:15:52 -0500 by xmatthawkx

Wechat app cloud development introduction - project practice

1. Project introduction Recently, we have studied the cloud of small programs and launched a small program about food query. Including search, share and forward, collection, view history and other functions. The recipe API comes from aggregate data. 2. Applet address https://github.com/caochangkui/miniprogram-food 3. Applet Preview: 4. Partial ...

Posted on Sun, 01 Dec 2019 13:41:21 -0500 by ochi

Rewriting error handling in the format request of the Laravel framework

The default validate validation in the laravel framework returns to the previous page by default when handling errors, and only returns to Json when it is ajax. If we want to return Json all the time, we need to override error handling As follows: only create a new BaseRequest class in the Requests directory The code is as follows <?php /* ...

Posted on Sun, 01 Dec 2019 12:19:40 -0500 by Kevmaster

Details and examples of $http asynchronous deletion data of Angularjs

This article mainly introduces the detailed explanation of $http asynchronous deletion data of Angularjs and the relevant data of the instance. Here, it provides the implementation ideas and specific methods. It is written in a comprehensive and detailed way, which has a certain reference value. For those who need it, you can refer to and learn ...

Posted on Sun, 01 Dec 2019 09:28:58 -0500 by nosheep

Vi. springboot integration swagger

brief introduction swagger provides the most powerful and easy-to-use tools to take full advantage of the OpenAPI specification. Official website: https://swagger.io/ Preparation pom.xml jar introduction: < swagger. Version > 2.9.2 < / swagger. Version > <dependency> <groupId>io.springfox</groupId ...

Posted on Sun, 01 Dec 2019 06:57:04 -0500 by dayang

Spring-Boot2-X integrated Redis for caching

The real battle makes the real knowledge, and the composition records it. Main pain points solved Spring boot 2.0.2 as background Common serialization and deserialization settings Use Jackson 2jsonredisserializer for serialization and deserialization. Solve the problem of garbled code in cache Detailed instructions Complete use ex ...

Posted on Sun, 01 Dec 2019 06:49:09 -0500 by jacksonmj

Add, delete, modify and query json files based on Koa(nodejs framework)

If you want to use nodejs (koa) to build a complete front-end and back-end, complete the data addition, deletion, modification and query, and do not want to use the database, then use the json file.This paper introduces the addition, deletion, modification and query of json file based on koa. Code preparation const Koa = require('koa') const bo ...

Posted on Sun, 01 Dec 2019 03:51:08 -0500 by persia

Basic usage of CURL function extension in PHP

PHP's curl function provides many functions, which need to be combined according to specific steps. Let's first understand the basic steps for PHP to establish a curl request. $ch = CURL init(); / / create a new CURL resource to assign to variable $Ch curl_setopt($ch, CURLOPT_URL, $url); / / set URL $response = curl_exec($ch); / / execute, ge ...

Posted on Sat, 30 Nov 2019 18:00:57 -0500 by hours12