TS Blog

Written by Tan Shuai who lives and works in China building useful things. You should follow him on Twitter

December 24, 2021

V2EX 上有V友发帖讨论 React 在 Docker 部署时,如何动态的读取特定环境下的环境变量。在查阅了 Create React App 关于添加自定义环境变量的文档后,结合 nginx docker image(1.19版本及以上)提供的在 nginx config…

September 19, 2016

简单记录下之前看到并实践的一篇文章 Serving Apps Locally with Nginx and Pretty Domains。在 Mac OS X 上通过配置 Nginx 实现本地应用可以通过漂亮的域名来访问,比如 。类似的解决方案有 pow - Mac OS X…

April 22, 2016

最近的一个前端小项目是智能 Wi-Fi 音箱 Sugr Cube 中的 Web 上传歌曲界面,使用了 Require.js 组织代码,文件上传部分基于 jQuery File Upload。Web page 编写完后需要使用 r.js…

March 26, 2015

There are only two hard things in Computer Science: cache invalidation and naming things. — Phil Karlton 计算机科学只有两个难题:缓存失效和变量命名。 Coding…

January 26, 2015

GNU Bash shell 提供了 Command line editing 功能,它是由 Readline library 实现的。Python 交互式命令行和 Node.js REPL等程序都实现了类似的命令行编辑功能。Command line editing…

June 17, 2014

What’s a quick way to comment/uncomment lines in vim? Stackoverflow 上的一个关于 Vim comments…