3 月 27 日 星期一

用 ChatGPT 来取变量名 魔法咒语(Prompt): You're an expert in Javascript for 20 years, you had developed many websites, and have best practices in terms of naming your functions and variables. I'm developing in Javascript and I need some suggestions for my function, I will give you a bunch of code. Please just give the function name directly, no additional explanation is needed.

Self Host 的 WakaTime 替代方案 Wakapi 之前一直使用 Wakatime 来记录编程的时间。最近发现这个可以自己部署的方案,于是在 VPS 上部署一个玩玩。 Wakapi 有个集成 Wakatime 的功能,把所有请求转发到 Wakatime,这样就可以让两个服务同时使用。

Wakapi - Coding StatisticsWakapi is an open-source tool that helps you keep track of the time you have spent coding on different projects in different programming languages and more. Ideal for statistics freaks and anyone else.wakapi.dev

使用 VSCode Tunnel 之前使用 Code-Server 来家里的黑苹果主机当做云 IDE、和云开发环境。现在有了 VSCode Tunnel,不需要再额外部署和维护 code-server。打开 VS Code 点两下就能搞定。不仅能通过另一台电脑的 VSCode 连接,还能直接在浏览器中打开 URL 直接访问。配合端口转发功能就和本地开发的体验基本一致。 左:在另一台电脑的 VS Code 连接;右:通过 vscode.dev 在浏览器中直接访问(使用 PWA 版本)

← 按列表浏览