This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function sleep(name: string, ms: number) { | |
await new Promise(resolve => { | |
console.log(`${name} sleep ${ms} seconds`); | |
setTimeout(resolve, ms); | |
}); | |
} | |
async function forEachLoop() { | |
const numbers = [1, 2, 3, 4, 5]; | |
const basetime = Date.now(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Python: 当前文件", | |
"type": "python", | |
"request": "launch", |
const http = require('http');
const {readFileSync} = require('fs');
const {basename, normalize} = require('path');
const token =
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzNjk3NDk0NTZAcXEuY29tIiwiaWF0IjoxNTYzMzcyNDU1LCJleHAiOjE1NjMzNzYwNTV9.3E927Cxom1qWSZ0a8NbVu_4F0NdTL252PCqlv8KiAhA';
function getFileContent(file, boundary) {
const crlf = '\r\n';