JavaScript asynchronous processing (ES6)

1, What is Promise? Isn't it async/await? Why is Promise mentioned? In fact, async/await is an extension of Promise, so to understand async/await better, we need to understand Promise first. Let's see what Promise is first. First, use console.dir(Promise) in the browser to print out all the properties ...

Posted on Sat, 15 Feb 2020 21:39:07 -0500 by echox

Python gives the picture material an English name

When writing a web page, we often need to use picture material. If the picture material is a Chinese name, hanging on the server will cause confusion. We need to change the picture name to an English character before using it And naming is a world-class problem. It's even more painful to give English names to pictures Some people ...

Posted on Sat, 15 Feb 2020 12:32:18 -0500 by Mystis

Raft theory and practice [6]-lab3a-building distributed fault-tolerant kv service based on raft

Dead work Read raft paper Read raft Theory and Practice [1] - Theory Paper Read raft Theory and Practice [2]-lab2a Read raft theory and practice [3]-lab2a explanation Read raft Theory and Practice [4]-lab2b Log Replication Read raft Theory and Practice [5]-lab2c Log Replication Read Simulate RPC remote procedure calls Preface In previous ar ...

Posted on Sat, 15 Feb 2020 12:08:37 -0500 by dar-k

Run Actix web connection to Redis database with password

In the example of Actix web, I used my own Actix redis, but I tried it, It's not easy to use. Replace with another connection pool, Deadpool redis Library used library Edition deadpool-redis 0.5.2 redis 0.15.1 actix-web 2 actix-rt 1 dotenv 0.15.0 Setting environment variables REDIS_URL=redis://:password@localhost You can write ...

Posted on Sat, 15 Feb 2020 09:20:05 -0500 by gmartin1215

No suspension, 33 lines of code in C language version to write Tetris learning

as the New Year begins, let us also start a new life There is no time to be quiet, just someone to carry us forward - pay homage to those heroes who are retrograde in the front line of the epidemic, and when the spring is warm, may you return safely. It seems like a long time has passed since I last w ...

Posted on Sat, 15 Feb 2020 09:09:39 -0500 by gmp

Okhttp implements GitHub third-party login

Recently, I have been learning springboot. I just watched the basic and integrated video of springboot by Lei Fengyang. I hated to see the late rush. I naturally watched the video of Springboot Grain Shop in Silicon Valley. However, I couldn't say anything about it. I watched 16 sections and gave up. I searched bilibili again and found t ...

Posted on Sat, 15 Feb 2020 01:54:59 -0500 by spiffy577

Project practice I. basic component installation

1. Install 4.2.2 version of react router DOM cnpm install react-router-dom@^4.2.2 --save 2. Install axios yarn add axios 3. Install the 4.1.0 version of less loader cnpm install less-loader@^4.1.0 --save 4. After installation, the package.json file is as follows 5. Use yarn eject to expose ...

Posted on Fri, 14 Feb 2020 10:05:49 -0500 by ankur0101

JAVA data structure -- adjacency table of graph storage structure

The data structure series is a note that I have learned to make, which will be continuously updated. The source code is shared in github: data structure Of course, you can also get it from the following code snippet Note: github code update will be delayed. Pay attention not to get lost This article int ...

Posted on Fri, 14 Feb 2020 09:17:18 -0500 by furotte

JAVA data structure: implement graph breadth first traversal and depth first traversal

The data structure series is a note that I have learned to make, which will be continuously updated. The source code is shared in github: data structure Of course, you can also get it from the following code snippet Note: github code update will be delayed. Pay attention not to get lost A kind of This a ...

Posted on Fri, 14 Feb 2020 08:57:49 -0500 by jmaker

CUDA: accelerating applications with CUDA C/C + + (NVIDIA course)

The foundation of C/C + + accelerated computing With the technology and tools you have now, you are close to getting ready to start accelerating your actual applications. This section will provide you with the following details: a. Set up your own CUDA environment b. How best to continue learning in d ...

Posted on Fri, 14 Feb 2020 05:04:13 -0500 by ljCharlie