Code specification for vue development eslint

ESLint   whether it's a multi person collaboration or a personal project, code specification is very important. This can not only avoid basic syntax errors to a great extent, but also ensure the readability of the code. preparation 1, VSCode ESLint plug in The ESLint plug-in is used to display some error prompts in the editor accordi ...

Posted by rowantrimmer on Fri, 08 May 2020 03:07:25 -0700

The second code of java learning (flying chess competition - tortoise and hare race), following the previous blog, is familiar with Arrays and Arrays

The second code of java learning (flying chess competition - tortoise and hare race), following the previous blog, is familiar with Arrays and Arrays Preface Title Description thinking 1. Create a runway class (here only describes how to generate a runway, how to write it as a class is too simple, I will not introduce it): ...

Posted by NZ_Kiwis on Tue, 05 May 2020 22:04:02 -0700

Wechat game development 4: add physical engine Physijs for three.js

1, Foreword The primary goal in developing Physijs is to keep it as simple and user-friendly as possible. Physics engines can be daunting and difficult to set up, with so many options and configurations it is easy to feel overwhelmed. Physijs abstracts all of that extra logic out so you can focus on the rest of your project. In short, the m ...

Posted by stoop on Tue, 05 May 2020 07:18:19 -0700

A Device Online Notification Scheme for Century Interconnected Azure IoT Hub

This paper describes a scheme for getting device online notifications for Century Interconnected Azure IoT Hub.   Video Introduction: You can watch the video introduction at Station B: https://www.bilibili.com/video/BV1dp4y1X7X3/ Or watch it on the author's blog: https://www.51azure.cloud/post/2020/4/30/azure-iot-hub-device-on-line-report      ...

Posted by MannyG on Tue, 05 May 2020 03:03:33 -0700

Play with Java thread pool: how to build a thread pool?

0 core problem of creating thread pool According to one of Alibaba's Java development specifications, This rule points out that when we want to use the thread pool, we'd better not be lazy. We'd better create the thread pool by ourselves manually. Then the problem is, how to create the thread pool man ...

Posted by jemgames on Mon, 04 May 2020 00:03:31 -0700

javascript learning notes (ES6's most commonly used syntax)

Common features of ES6 let,const ES5 has only global scope and function scope, but no block level scope. Let adds a block level scope to JavaScript. The variables it declares are only valid in the code block where the let command is located. { { let a = 1; let b = 1; console.log(a);// 1 ...

Posted by Skunkmaster on Sun, 03 May 2020 06:34:42 -0700

opencv for python (11) image threshold and adaptive threshold

Function cv2.threshold (IMG, 127255, CV2. Threshold) The four parameters in the function are original image, threshold, maximum value and threshold type Generally, there are five types of thresholds: Cv2.threshold - part of the pixel value greater than the threshold becomes the maximum value, others become 0 ...

Posted by deed02392 on Sun, 03 May 2020 02:45:24 -0700

Using divide and conquer algorithm to realize merge and sort

//@1 -- first divide array a into 2 //@2 -- judge array pairs and put the smallest element after array a comparison into array d //@3 -- after the comparison between the two groups, judge the conditions //@4 -- when the rest is on the left, it means that the starting limit on the right has exceeded the range. Then, cycle to copy the remainin ...

Posted by mcguinkc on Sun, 03 May 2020 01:00:19 -0700

Official driver transplantation of LoRa chip SX1278

1. First, find a blank project template, create two folders (groups) in the project: Radio and platform, add to the platform, FIFO. C, led. C, sx1276 Hal. C, sx12xxeiger. C; add radio. C, sx1276 FSK. C, sx1276 fskmisc. C, sx1276 loramisc. C, sx1276 loramisc. C, sx1276. C; and add the corresponding header file path in the project. Compile the wh ...

Posted by luanne on Sat, 02 May 2020 18:42:29 -0700

51nod 1227 average minimum common multiple Mobius inversion + Dujiao screen

meaning of the title Lcm(a,b) represents the minimum common multiple of a and B, and A(n) represents the average number of Lcm(n,i) (1 < = I < = n), For example: A(4) = (Lcm(1,4) + Lcm(2,4) + Lcm(3,4) + Lcm(4,4)) / 4 = (4 + 4 + 12 + 4) / 4 = 6. F(a, b) = A(a) + A(a + 1) + ...... A(b). (F(a,b) = ∑A(k), a <= k <= b) For example: ...

Posted by rocksolidhq on Fri, 01 May 2020 20:23:57 -0700