X_Del 最近的时间轴更新
@zythum 看来在这里被 @ 不会记在通知里,可以 @Livid 了。
2014-02-14 14:30:11 +08:00
@zythum 让你试一下~
2014-02-12 21:40:52 +08:00
X_Del's repos on GitHub
3 人关注
FlowerPasswordWorkflow
Alfred Workflow for 花密: http://flowerpassword.com/
JavaScript · 2 人关注
Patch-of-BITJWC
A script fixing bugs on the pages of jwc.bit.edu.cn.
JavaScript · 1 人关注
CarWash
Source Codes of CarWash Program.
TypeScript · 1 人关注
FakeRecoil
A Naive Recoil Implementation.
JavaScript · 1 人关注
openrc-docs-zh-hans
本项目旨在整理和翻译 OpenRC 项目中的一些文档和手册。
JavaScript · 1 人关注
QRuery
QR Generator with GUI (based on Electron)
YASnippet · 0 人关注
.emacs.d
My .emacs.d
Ruby · 0 人关注
blog-deprecated
Prace's blog and wiki.
Dockerfile · 0 人关注
brook-docker
Docker image builder for Brook
0 人关注
clash-rules
🦄️ 🎃 👻 Clash Premium 规则集(RULE-SET),兼容 ClashX Pro、Clash for Windows 客户端。
Python · 0 人关注
cosa-nostra
Cosa Nostra, a FOSS graph based malware clusterization toolkit.
TypeScript · 0 人关注
ddyll
大的要来了 - 倒数日日历
Shell · 0 人关注
desktop-configurations
My Linux desktop environment configurations for i3, polybar, rofi and etc..
JavaScript · 0 人关注
DinoRun
Cocos Creator 开发的小游戏
0 人关注
fishline
A powerline prompt framework for the fish-shell built in fish-shell.
TypeScript · 0 人关注
flowexe
TypeScript · 0 人关注
frames
0 人关注
generative-ai-for-beginners
12 Lessons, Get Started Building with Generative AI 🔗 https://microsoft.github.io/generative-ai-for-beginners/
JavaScript · 0 人关注
Ioscript
An interpreter for Io language.
JavaScript · 0 人关注
malware-family
Show malware families with d3.js
JavaScript · 0 人关注
Markie
Not only "yet another markdown editor", but also a WYSIWYG markdown editor.
JavaScript · 0 人关注
Markoff
Yet another markdown editor.
TypeScript · 0 人关注
openai-translator
A select-to-translate utility that leverages ChatGPT.
TypeScript · 0 人关注
PosTissue
Turn github issues and gists into webpages.
TypeScript · 0 人关注
preset-web-fonts-reproduction
Reprodution of font weight bug of UnoCSS preset-web-fonts.
JavaScript · 0 人关注
Rekey
A useful helper of PaintToolSAI on tablets.
0 人关注
rime-configurations
My Configuration of Rime
JavaScript · 0 人关注
ship_ap_calculator
Jupyter Notebook · 0 人关注
sicp-solutions
This repository contains the notes I took when reading SICP.
Rust · 0 人关注
socks5rs
A simple socks5 server, written in Rust.
X_Del

X_Del

異議あり!
V2EX 第 4313 号会员,加入于 2010-12-25 15:30:51 +08:00
2 G 19 S 95 B
React 19 发布了,你们用过 Suspense / Transition 吗
React  •  X_Del  •  113 天前  •  最后回复来自 iugo
12
要去杭州啦,求 V 友们推荐好玩的地方(西湖除外)~
杭州  •  X_Del  •  2015-08-05 17:29:13 PM  •  最后回复来自 sophie2805
21
@Livid git 这个节点的背景没有无缝,错位了
反馈  •  X_Del  •  2014-07-04 19:45:45 PM  •  最后回复来自 Livid
1
大家买到新书之后会扔掉腰封么?
问与答  •  X_Del  •  2014-02-23 11:21:42 AM  •  最后回复来自 amycs
36
现在用 Clojure 或 Scala 可以写 Andorid 应用么?
Android  •  X_Del  •  2013-08-08 10:08:33 AM  •  最后回复来自 seeker
2
thoughtbot presents: The Playbook
分享发现  •  X_Del  •  2012-07-19 22:37:30 PM
你在 V2EX 收藏了多少个主题?
问与答  •  X_Del  •  2012-05-04 21:37:39 PM  •  最后回复来自 hitech
5
X_Del 最近回复了
1 天前
回复了 nativeBoy 创建的主题 浏览器 火狐不争气啊
Mac 长年火狐,页面滚动体感比 Chrome 系流畅很多。打个比方 Firefox 像是在滑玻璃,Chrome 系像是在滑塑料。

Windows 下冷启动确实很慢。
搭车问纯自用,tailscale + 自建 derp 与自建 wireguard 区别大吗?既然 tailscale 底层也是用 wiregurad 的话。
感谢大家 原来 Linux 对 NTFS 支持已经很稳定了吗。我还停留在 NTFS-3g 会损坏 NTFS 的版本…
@yinmin 感谢大佬 解惑了
@laminux29 也想过 NAS + SMB 的方案,目前确实没条件上 NAS T^T
36 天前
回复了 ooo4 创建的主题 React 请教一个关于 useEffect 依赖的问题
不一定要多用 useMemo ,但一定要少用 useEffect 。
见到很多 React 新人 useEffect 的时候,会创建很多多余的 state ,比如下面这种代码:

```
const [lightColor, setLightColor] = useState<'red' | 'yellow' | 'green'>('red');
const [canPass, setCanPass] = useState<boolean>(false);

useEffect(() => {
if (lightColor === 'green') setCanPass(true);
else setCanPass(false);
}, [lightColor]);
```

这里 canPass 不该是一个 state ,根本就是一个 computed value ,用 useMemo 才对:

```
const [lightColor, setLightColor] = useState<'red' | 'yellow' | 'green'>('red');
const canPass = useMemo(() => lightColor === 'green', [lightColor]);
```

大多数场合 useMemo 也是多余的,遇到性能问题再优化就可以:

```
canPass = lightColor === 'green';
```

所以我给 React 新人的建议都是:少用 useEffect ,如果遇到了必须 useEffect 的 case ,看看 ahooks 等库里有没有现成的 hook 。
40 天前
回复了 strd 创建的主题 Windows 请教下,如何使用 SSH 连接上本机的 WSL?
https://learn.microsoft.com/en-us/windows/wsl/networking
默认是 NAT 模式,可以通过修改 .wslconfig 设为 mirrored 模式。
改成 mirrored 模式之后,在子系统里开启 sshd ,应该就可以在 Windows 上用 localhost 到 ssh 到 wsl 里了。
如果 Windows 也开了 sshd ,那要让子系统 ssh 和 Windows ssh 端口错开。
63 天前
回复了 NG6 创建的主题 macOS macOS 的 WindowServer 是真的没的救了吗?
开机 3 天,WindowsServer 内存占用 900MB 但是 CPU 占用 20%...
好奇场景,除非是数据结构特殊,感觉九成场合都能用 Ruby JS 一类现成的的动态语言,写几个函数直接搓一个 DSL 出来,效率还更高。
@Leviathann React 的确是爸爸。
Bonus:实在讨厌嵌套三元表达式的话,还有这种东西: https://github.com/romac/react-if
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2662 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 07:27 · PVG 15:27 · LAX 00:27 · JFK 03:27
Developed with CodeLauncher
♥ Do have faith in what you're doing.