xiaomao Feng

Results 22 issues of xiaomao Feng

## now.js是什么 `now.js`是一个javascript的时间操作小工具,类似[date-fns](https://github.com/date-fns/date-fns)和[moment](https://github.com/moment/moment)。 ## 长啥样 简单的把示例放这,更多用法请到[github](https://github.com/hongmaoxiao/now)去发现。 ```javascript import Now from 'now.js'; // for node(browser do not need this) now = new Now() now.format() // "2017-11-20T22:23:00+08:00" now.format('YYYY-MM-DD HH:mm:ss.SSS') // "2017-11-20 22:23:00.285"...

**今年我的主要学习任务是抄优秀框架的源代码!** 最近想爬点数据玩一玩,所以打算把python好好的学一学,我就先从小的项目开始抄吧。pip-pop是python代码界的男神Kenneth Reitz写的一个关于python安装依赖requirements.txt的命令行操作的库。这里是关于Kenneth Reitz的中文介绍。 我是按照他github上的项目一个一个commit敲的,这个项目的学习代码放在pip-pop-source上。 我抄完的代码结构是下面这样的,跟作者的不全一样,因为他自己的库是作为python第三方库可以安装使用的,所以一些配置文件和README我就不去写了,只要核心的功能实现了就行: ``` ~/source/backend/python/pip-pop master ❯ tree . ├── bin │   ├── pip-diff │   └── pip-grep ├── README.md ├── requirements.txt ├── setup.py ├── tests │   ├──...