a132811's repos on GitHub
IDL · 19 人关注
ahuigo.github.io
Ahuigo's notes
Python · 2 人关注
ahui-aiohttp-server
Aiohttp server for static files and python file(php-like server)
Go · 1 人关注
arun
live reload run command
JavaScript · 1 人关注
chrome-ext
my chrome extension for development
Python · 0 人关注
aiohttp
Async http client/server framework (asyncio)
0 人关注
akshare
AkShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
CSS · 0 人关注
aleph.js.antd
0 人关注
alfred-workflows
Save time, Improve life.🚀 ☕️
0 人关注
ama
Ask me anything!
TypeScript · 0 人关注
auto-devops
Python · 0 人关注
auto-tool
0 人关注
avlmini
AVL implementation which is as fast/compact as linux's rbtree
0 人关注
boltcss
Mostly-reasonable HTML Styles
JavaScript · 0 人关注
bookAdmin
Egg Node Mogoose
0 人关注
build-your-ai-coding-assistant
有手就会 《构建你自己的 AI 辅助编码助手》 —— 介绍如何 DIY 一个端到端(从 IDE 插件、模型选型、数据集构建到模型微调)的 AI 辅助编程工具,类似于 GitHub Copilot、JetBrains AI Assistant、AutoDev 等。
JavaScript · 0 人关注
busboy
A streaming parser for HTML form data for node.js
0 人关注
c
C · 0 人关注
c-lib
0 人关注
cadence
Cadence is a distributed, scalable, durable, and highly available orchestration engine to execute asynchronous long-running business logic in a scalable and resilient way.
0 人关注
cadence-client
Framework for authoring workflows and activities running on top of the Cadence orchestration engine.
Go · 0 人关注
cadence-v11-bad-case
0 人关注
chatgpt-mirror
A mirror of ChatGPT based on the gpt-3.5-turbo model.
0 人关注
ChatGPT-Translator
使用ChatGPT API的翻譯文字插件
JavaScript · 0 人关注
chrome-ext-fiddle
0 人关注
chrome-HeaderEditor
Manage browser's requests, include modify the request headers and response headers, redirect requests, cancel requests
0 人关注
chrome-xswitch
A Chrome Extension for redirecting/forwarding request urls
0 人关注
clipboard2markdown
Convert rich-text on your clipbaord to markdown
0 人关注
copier
Copier for golang, copy value from struct to struct and more
JavaScript · 0 人关注
cryptocurrency
TypeScript · 0 人关注
deno-debug-example
a132811

a132811

V2EX 第 55470 号会员,加入于 2014-02-08 11:15:21 +08:00
今日活跃度排名 14934
利用泛型实现的 golang 缓存装饰器
Go 编程语言  •  a132811  •  107 天前  •  最后回复来自 a132811
6
golang 泛型能否支持可变参数
Go 编程语言  •  a132811  •  242 天前  •  最后回复来自 Anubisks
4
ts 有办法隐式修改 class constructor 的类型吗?
TypeScript  •  a132811  •  284 天前  •  最后回复来自 chnwillliu
2
ts 如何根据可选参数返回不同的泛型成员,有简单的写法吗?
TypeScript  •  a132811  •  2022-09-15 11:55:17 AM  •  最后回复来自 a132811
3
Vue3 下有什么 umijs 的替代品推荐吗?
Vue.js  •  a132811  •  2022-08-01 19:42:16 PM  •  最后回复来自 a132811
13
感觉 uber/fx 并不比 getInstance 工厂好用
Go 编程语言  •  a132811  •  2022-08-09 22:20:55 PM  •  最后回复来自 a132811
20
有办法在 vscode terminal 中的 vim 实现 map Command+c/v/s/a 映射吗?
Vim  •  a132811  •  2022-07-05 16:29:30 PM  •  最后回复来自 a132811
2
a132811 最近回复了
我是主力用 vscode 写 js/ts/go/python 好多年了,偶尔用来写 python/rust/java 。

最开始 java/python 的插件都遇到过很影响开发的 bug ,发 issue 后经过很长时间才解决的,不过目前使用良好(轻度使用)
65 天前
回复了 heroisuseless 创建的主题 分享创造 还在用 JS?过来看看 GS
这是逆 ECMA/TC39  标准而行呀。es 不是不想简化,是要兼容,而且这些年语法上渐近的精进了不少了。

Deno 走 web 标准,做得很好,但是就因为跟 node/npm 不兼容,推广起来老费劲了
感觉 rust 的痛是暂时,zig 的痛是长期的
80 天前
回复了 awesomePower 创建的主题 程序员 前端求教,有没有懂 flex 布局的
80 天前
回复了 awesomePower 创建的主题 程序员 前端求教,有没有懂 flex 布局的
@a132811 chrome version 120 默认 line-height 1.15
80 天前
回复了 awesomePower 创建的主题 程序员 前端求教,有没有懂 flex 布局的
你的例子中:分上下两个 flex row. 在 chrome version 120 下:

第一个 row ,最大的 block 身高= 35px*1.15 + margin(70px) = 110px
第二个 row ,最大的 block 身高= 190px

纵轴剩余: 500px - 110px - 190px = 200px, 两者平分各 100px 。

第一个 row:110+100 = 210px
第二个 row:190+100 = 290px (强制指定 item 的 190px 则不受影响)

---------
BTW ,这个类似主轴分配规则,比如:

```html
<div style="width:400px;display:flex">
<div style="width:100px;flex-grow:1">item-a</div>
<div style="width:100px;flex-grow:2">item-b</div>
</div>
item-a, item-b 会根据 flex-grow 值,分割剩余的 200px(仅当存在剩余空间时)
item-a: 100 + 200px*(1/3) = 166.66
item-b: 100 + 200px*(2/3) = 233.33
```
我一直用的 vscode 自带的快捷键 go forward / go back
mac 的话,按 cmd k cmd+s 看一下你的快捷键是什么
103 天前
回复了 CarlJ9 创建的主题 商业模式 免费浏览器扩展的出路只有被收购吗?
chrome extension 的权限控制太水了,默认就是 On all sites 模式
不知道为什么不改成默认每个 extension 是 when you click extension 模式。
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2793 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 11:51 · PVG 19:51 · LAX 04:51 · JFK 07:51
Developed with CodeLauncher
♥ Do have faith in what you're doing.