发布于 2016-12-26 23:51:54 | 88 次阅读 | 评论: 0 | 来源: 网友投递
GitHub Atom 文本编辑器
Atom 是 Github 专门为程序员推出的一个跨平台文本编辑器。具有简洁和直观的图形用户界面,并有很多有趣的特点:支持CSS,HTML,JavaScript等网页编程语言。它支持宏,自动完成分屏功能,集成了文件管理器。
Atom 是由 ukey 改名,此版本主要修复了一些 bug,增加了 atom_explain() 函数,此函数可以将 ID 转换成一个包括“timestamp”,“datacenter”和“worker”的数组。
此版本可以使用在生产环境。
functions list:
1) string atom_next_id(void);
Get the next unique ID.
2) array atom_explain(string ID);
Change unique ID to array includes: timestamp, datacenter id and worker id.
<?php $id = atom_next_id(); echo $id; $info = atom_explain($id); echo date('Y-m-d H:i:s', $info['timestamp']); ?>
$ cd ./atom $ phpize $ ./configure $ make $ sudo make install
[atom] atom.datacenter = integer atom.worker = intger atom.twepoch = uint64