Simple HTTP Server on OSX

发布在 Mac   100 words, about 1 min read

很多项目在开发前期或者仅有 HTML/CSS/JS 文件,本地想要预览效果而不希望本地启动 Apache 或者 Nginx 难免有些麻烦,Mac OSX 其实内置Python,通过下面两条命令就可以快速启动一个简单 HTTP 服务。

1
2
$cd path/project/folder
$python -m SimpleHTTPServer 8080

Tada, thus you have got a HTTP server which port is 8080.

1
control + c // stop it

评论和共享

【译】I know how to program, but I don't know what to program

发布在 翻译   2,135 words, about 7 min read

湾区简评:这是很多初学编程的人,尤其是通过大学里的编程课学习写程序的人面临的问题。除了刷编程竞赛题、做课后编程题外,写程序能做什么?文章给的建议我赞同:先尝试去写自己也会用到的自动化的小工具。如果顺序反过来,已经知道要做什么了(比如做网站、做某个具体功能的app、做某个有实际用途的工具),再去学编程,会不会效果更好?

阅读全文

Try My Best

发布在 blog   972 words, about 4 min read

Be who you are and say what you feel, because those who mind don’t matter and those who matter don’t mind.

– Bernard Baruch

阅读全文

Mac Tool

发布在 技术   458 words, about 2 min read

推荐的两款软件,它们有助于我提高效率,因此来完成这篇推介文。
Dash 一款用来集成快速查阅文档;CheatSheet 一款用来提示快捷键。

阅读全文

Swift Study 1

发布在 技术   721 words, about 3 min read

Swift is an important chance to find coding passion back to me. So Do Not Lose It! Come on!

阅读全文
作者的图片

Bean Lee

author.bio


author.job


Beijing