yangg 最近的时间轴更新
yangg's repos on GitHub
JavaScript · 16 人关注
scrolling-element
A polyfill for document.scrollingElement
JavaScript · 6 人关注
dot2val
Set or get a value within a deeply nested object using `dot' notation
Shell · 5 人关注
check-cert
检查 https 证书是否临近过期时间,并通过 Server酱 通知
3 人关注
blog1
My blog https://17ch.cn
Shell · 2 人关注
gist
Gist files
JavaScript · 2 人关注
koa-get-body
A body parser for koa2, support urlencoded, multipart and json
JavaScript · 2 人关注
postcss-background-alpha
PostCSS plugin to add gradient filter for IE8 to support rgba background.
Emacs Lisp · 1 人关注
finder-mode
A File finder for emacs, find file in project
CSS · 1 人关注
hexo-theme-even
hexo-theme-even with a few tweaks, See
JavaScript · 1 人关注
koa-demo
koa blog demo
JavaScript · 0 人关注
blog
A static blog build on top of Notion and NextJS, deployed on Vercel.
JavaScript · 0 人关注
carelabel
JavaScript · 0 人关注
clsx
A tiny (228B) utility for constructing `className` strings conditionally.
Shell · 0 人关注
dotfiles
Vim, shell and git config files
JavaScript · 0 人关注
drawdb
Free, simple, and intuitive online database design tool and SQL generator.
Emacs Lisp · 0 人关注
emacs.d
Emacs config files
JavaScript · 0 人关注
escodegen
ECMAScript code generator
JavaScript · 0 人关注
git-shortcut
quickly run git commands work with multiple repos without switch directory
TypeScript · 0 人关注
gpt-web
A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
JavaScript · 0 人关注
hexo-postscript
An useful tool for adding current post link in hexo post page
JavaScript · 0 人关注
icon-pick
extract svg icons from fontawesome, .etc
PHP · 0 人关注
jquery-comps
JavaScript · 0 人关注
juejin-auto-mining
自动签到,自动挖矿
JavaScript · 0 人关注
msg-notify
Display notifications to your app
Rust · 0 人关注
Pake
🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用
TypeScript · 0 人关注
react-prism-code
react component highlight code via prismjs
JavaScript · 0 人关注
send-api
JavaScript · 0 人关注
strbuf
Concat javascript string in es6 way, and more!
TypeScript · 0 人关注
worker-app
yangg

yangg

V2EX 第 10280 号会员,加入于 2011-07-12 23:15:19 +08:00
Web developer, .etc.
Mac mini 外接显示器求推荐?
Mac mini  •  yangg  •  164 天前  •  最后回复来自 iyg429
16
帆书-凡登讲书 有没有英文版的?
问与答  •  yangg  •  203 天前  •  最后回复来自 yangg
3
Chrome 访问 https://bitbucket.org/显示 NET::ERR_CERT_COMMON_NAME_INVALID
问与答  •  yangg  •  2022-06-10 13:53:38 PM  •  最后回复来自 yangg
3
mac 上软件禁止休眠问题
macOS  •  yangg  •  2022-05-31 16:36:04 PM  •  最后回复来自 ililu
2
Mac 里我最喜欢的功能 - Emacs 快捷键
Apple  •  yangg  •  2019-08-07 09:05:24 AM  •  最后回复来自 yangg
5
有用 Enpass 的没,问下关于 ios 上 V2EX 自动提交问题
问与答  •  yangg  •  2018-08-24 17:14:40 PM  •  最后回复来自 yangg
4
请问下怎么恢复 icloud 里刚才错误修改的文件?
iCloud  •  yangg  •  2018-08-20 15:41:48 PM  •  最后回复来自 yangg
1
Chrome 最近突然不能自动更新了?
问与答  •  yangg  •  2017-04-19 13:46:15 PM  •  最后回复来自 yangg
3
CSS scroll snap points 怎么用特征检测是否支持
问与答  •  yangg  •  2016-07-25 15:08:22 PM  •  最后回复来自 yangg
3
yangg 最近回复了
本地开发 volta ,最能避免 lz 的手动切换问题
21 天前
回复了 ztm0929 创建的主题 问与答 大家有哪些正在使用的 Docker 服务?
ollma 上次在 docker 里跑很慢很费资源,mac 真实机不会,
23 天前
回复了 liox 创建的主题 分享发现 京东 APP 搜索 《夜》,是自身功能?
我的-小程序-搜索 夜
@erquren ubuntu 22.04 怎么升级?
阿里云的切到 ubuntu 官方镜像,还是

sudo apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
gsasl-common libgsasl7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
#
# OpenSSH CVE-2024-6387 has been fixed for 22.04 LTS, 23.10 and 24.04 LTS.
# RegreSSHion: Possible RCE Due To A Race Condition In Signal Handling.
# For more details see: https://ubuntu.com/security/notices/USN-6859-1.
#
The following packages have been kept back:
python3-update-manager ubuntu-advantage-tools update-manager-core
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
➜ apt apt policy openssh-server
openssh-server:
Installed: 1:8.9p1-3ubuntu0.10
Candidate: 1:8.9p1-3ubuntu0.10
Version table:
*** 1:8.9p1-3ubuntu0.10 500
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
100 /var/lib/dpkg/status
1:8.9p1-3 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
就是从 curl 导入的不能归类到 api 里,只能到 request 里,很难受啊
之前用 postman ,套个浏览器后就非常慢,都很少用,用了一年 apifox ,很好用。
25 天前
回复了 shilianmlxg 创建的主题 程序员 前端怎么定义字典更好呢
1. 方便直接从名称取值
2. 同时方便下拉列表显示
25 天前
回复了 shilianmlxg 创建的主题 程序员 前端怎么定义字典更好呢
使用
export const [ContractType, ContractTypeOptions] = createEnum([
{ name: 'Standard', text: '标准合同', code: 1 },
{ name: 'NonStandard', text: '非标准合同', code: 0 },
])

ContractType.Standard = 2 // ❌ throws a 'Error'.
25 天前
回复了 shilianmlxg 创建的主题 程序员 前端怎么定义字典更好呢
之前写过一个

/**
* @param {{ name: string, text: string, code?: number | string }[]} enums
* @returns {[Object, {id: number | string, text: string}[]]}
*/
function createEnum(enums) {
const Enum = {}
const options = []
for (let i = 0; i < enums.length; i++) {
const x = enums[i]
const code = 'code' in x ? x.code : i + 1
Enum[x.name] = code
// Enum[code] = x.text // cannot use Object.values
Object.defineProperty(Enum, code, {
value: x.text,
// implies enumerable: false
})
options.push({id: code, text: x.text})
}
Object.freeze(Enum)
return [Enum, options]
}
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2271 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms · UTC 01:20 · PVG 09:20 · LAX 18:20 · JFK 21:20
Developed with CodeLauncher
♥ Do have faith in what you're doing.