tangmou 最近的时间轴更新
tangmou's repos on GitHub
C · 2 人关注
nginx-flv-module
C · 1 人关注
my-nginx-modules
0 人关注
ada
WHATWG-compliant and fast URL parser written in modern C++
C · 0 人关注
balus-nginx
0 人关注
balusch
0 人关注
beast
HTTP and WebSocket built on Boost.Asio in C++11
0 人关注
bun
Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
C++ · 0 人关注
capnproto
Cap'n Proto serialization/RPC system - core tools and C++ library
0 人关注
Catch2
A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
0 人关注
ccls
C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
CSS · 0 人关注
cloudflare-docs
Cloudflare’s documentation
C · 0 人关注
collection
0 人关注
CppTemplateTutorial
中文的C++ Template的教学指南。与知名书籍C++ Templates不同,该系列教程将C++ Templates作为一门图灵完备的语言来讲授,以求帮助读者对Meta-Programming融会贯通。(正在施工中)
0 人关注
dotfiles
0 人关注
dpdk
Mirror of Data Plane Development Kit, git://dpdk.org/dpdk (http://dpdk.org)
0 人关注
envoy
Cloud-native high-performance edge/middle/service proxy
0 人关注
gitalk-comment
0 人关注
hiactor
Hiactor is an open-source hierarchical actor framework for building high-performance, concurrent and scalable event-driven systems using C++.
0 人关注
json
A C++11 or library for parsing and serializing JSON to and from a DOM container in memory.
C · 0 人关注
json-tutorial
从零开始的 JSON 库教程
C++ · 0 人关注
leveldb
LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.
0 人关注
loti-examples
Source code for example programs from Lord of the io_uring guide
C · 0 人关注
lua
The Lua development repository, as seen by the Lua team. Mirrored irregularly. Please DO NOT send pull requests. Report issues in the Lua mailing list https://www.lua.org/lua-l.html
C · 0 人关注
lua-nginx-module
Embed the Power of Lua into NGINX HTTP servers
Lua · 0 人关注
lua-resty-core
New FFI-based API for lua-nginx-module
0 人关注
Markdown_Photos
C · 0 人关注
My-APUE
0 人关注
nginx
An official read-only mirror of http://hg.nginx.org/nginx/ which is updated hourly. Pull requests on GitHub cannot be accepted and will be automatically closed. The proper way to submit changes to nginx is via the nginx development mailing list, see http://nginx.org/en/docs/contributing_changes.html
0 人关注
node
Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles:
Shell · 0 人关注
Oyster
tangmou

tangmou

V2EX 第 351541 号会员,加入于 2018-09-22 21:00:37 +08:00
今日活跃度排名 15443
tangmou 最近回复了
136 天前
回复了 icoming 创建的主题 JavaScript 为什么 Promise 会有这种表现?
@tangmou #16 为啥我的 markdown 没有渲染出来...
136 天前
回复了 icoming 创建的主题 JavaScript 为什么 Promise 会有这种表现?
@lisxour #5
@tangmou 代码忘了贴了:

```javascriipt
// 需要订购的产品链接
const productList = [
"https://xxx",
"https://xxx",
"https://xxx"
]

async function asyncSleep(duration) {
await new Promise(r => setTimeout(r, duration));
}

// 是否有货
async function hasStock(url) {
await asyncSleep(2000);
return false
}

// 开始订购
const startOrder = async () => {
const promises = productList.map(u => ({tag: u, promise: hasStock(u)}))
const results = await Promise.allSettled(promises)
for (const [i, result] of results.entries()) {
// 是否有货,有就订购
if (!result.value) {
console.log("无货", promises[i].tag)
continue
}
}
}

function exitHandler(options, exitCode) {
console.log("process exit:", performance.now());
}

process.on('exit', exitHandler.bind(null,{cleanup:true}));

console.log("before:", performance.now());
startOrder();
console.log("after:", performance.now());
```
136 天前
回复了 icoming 创建的主题 JavaScript 为什么 Promise 会有这种表现?
@lisxour #5 即使 hasStock 里面进行了 `await` 也不影响, 因为对于 `hasStock` 本身没有进行 `await`; 这里 `startOrder` 这个函数不会卡顿 (使用 "错误的处理"), 可能的一个原因是, 通过 node.js 处理时, 它会把所有 pending 的 promise 都处理完, 所以是卡在其他地方了. 比如下面这个代码:

```javascript
```
253 天前
回复了 iorilu 创建的主题 程序员 有多少人完全使用命令行管理 git 得
很舒服的文字, 感谢 OP !

看完之后我的感受和 OP 对象一样: "这些英国人知道他们这种习以为常的生活是一种特权吗".
324 天前
回复了 charslee013 创建的主题 求职 24 届大三实习简历恳求指指点点
@tangmou start -> star (我也写错了, 囧)
324 天前
回复了 charslee013 创建的主题 求职 24 届大三实习简历恳求指指点点
说一些格式方面的问题 (可能有的点其他人已经提过了):

1. 字体不统一, 我看里面应该有楷体和其他好几种字体
2. 颜色有些花, 里面的粗体以及蓝色的项目描述个人觉得没有啥必要
3. 行距有点窄 (可能也是字体的问题)
4. 标点符号和后面的字有的地方没有空格


其他的一些问题:

1. 有错别字: start -> start?
2. 有的地方语句不够通顺:比如 [项目经历] 里面 [行动] 这一栏, 可以再读一读看看; [开源项目] 里面 [我的贡献] "观察程序的是否"... 这类
3. 口语化严重,并不是说要各种黑话,只是应该更加正式一些,也显得专业一点
4. 多余的解释,比如 PullRequest (PR), 这个应该没啥好解释的

写简历很多时候就和写代码一样的, 写完要多看 (确实很少人会经常看自己写的代码),持续去优化。我建议直接上 https://www.overleaf.com/ 找一个中文简历改,应该会好得多。
太秀了, 马上用起来!
2022-11-26 12:27:52 +08:00
回复了 spr1ngs 创建的主题 程序员 求推荐点 txt 风格的博客 博客主题
@hsuyeung 色彩真好看~
2022-11-26 12:25:56 +08:00
回复了 spr1ngs 创建的主题 程序员 求推荐点 txt 风格的博客 博客主题
https://chenjianyong.com/

Markdown 用 pandoc 转成 html
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2710 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 13:42 · PVG 21:42 · LAX 06:42 · JFK 09:42
Developed with CodeLauncher
♥ Do have faith in what you're doing.