Wechat applet configuration ESlint
When we write large projects such as React and Vue, or use the framework to build small programs, in order to facilitate the collaborative development of multiple people, we often introduce ESlint to standardize the code writing, so that different developers can write unified code. For native applet pro ...
Posted by witold on Mon, 28 Oct 2019 04:03:29 +0100
Spring boot uses annotation to integrate Redis
1. First import the jar package using Maven
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId> ...
Posted by ball420 on Sun, 27 Oct 2019 09:16:28 +0100
Find the TopK problem
Search for the largest / smallest k from a large number. This kind of problem is called TopK problem.
Data structure - maximum / small heap is usually used to solve the problem.
Find the front k, and use the minimum heap, that is, the element at the top of the heap is the minimum value in the heap.
...
Posted by programmer79 on Sat, 26 Oct 2019 21:06:58 +0200
Using vuejs and mockjs simulation data to make shopping cart
Using vuejs and mockjs to simulate shopping cart
1. If you don't know mockjs, it's recommended to go to the official website to learn about it: Mockjs
2. The first step is to make the simulation data by yourself (of course, you can also use the MVC mode of nodejs to introduce mockjs to obtain the ...
Posted by roopurt18 on Sat, 26 Oct 2019 17:36:04 +0200
Integrated HttpClient of SpringBoot
Table of Contents
1.maven add dependency
2. Add profile information
3. Create HttpClient entity class association configuration
4. Create connection thread processing class
5. Create request return result class
6. Create specific request class
1.maven add dependency
pom.xml: here, we add the ...
Posted by petitduc on Fri, 25 Oct 2019 21:08:57 +0200
Using JAXB to transform XML and JavaBean (supporting generics)
I saw that someone else had a medal of 1024, and I specially left one on October 24 this year to see if I could get it.
In the daily development, it may involve the mutual call between interfaces. Although under the promotion of the concept of microservice, many companies use the lightweight JSON fo ...
Posted by manohoo on Thu, 24 Oct 2019 12:37:06 +0200
Django JsonResponse does not automatically set cookie s
[background]
At present, we are doing a web project with front-end and back-end separation. The back-end uses django framework, and all API s only return json. In this process, we encounter a problem that all json response django will not actively set the cookies of response object, which further makes the cookie value of csrftoken never appea ...
Posted by ankur0101 on Tue, 22 Oct 2019 17:21:54 +0200
Asp.net webapi pushes messages to clients through WebSocket to build a service that is both the server and the client
WebSocket is a single TCP Connect to full duplex Communication protocol. WebSocket communication protocol was approved by IETF As standard RFC 6455 and supplemented by RFC7936. WebSocket API Also be W3C Set as standard.
WebSocket makes the data exchange between the client and the server easier, allo ...
Posted by omprakash on Mon, 21 Oct 2019 17:05:53 +0200
paddlepaddle Baidu flying experience two - Chinese text classification
1 related links
ERNIE Code: https://github.com/PaddlePaddle/ERNIE/tree/develop/ERNIE
2 specific use
2.1 use steps
Download data:
Download the model (including configuration files and dictionaries) and task data.
Decompress the model and task data, start the training, execute bash script / run ABC ...
Posted by Jtech inc. on Sun, 20 Oct 2019 19:59:01 +0200
WegGL 3D industrial Internet of things tunnel monitoring practice
Preface
It is very necessary to monitor the lane jam in the tunnel, the accident scene in the tunnel, display the current accident position in the tunnel and give prompt at the tunnel entrance. The main contents of this tunnel Demo include: lighting, fan, Lane indicator light, traffic signal light, information board, fire protection, fire alarm ...
Posted by brown2005 on Sat, 19 Oct 2019 12:22:58 +0200