This is a Chinese version of https://gist.github.com/1207002/86f48cd3b3b72c85e6293926cf7c730de03b2f08 from lucasfais
| ⌘T | 前往文件 |
| ⌘⌃P | 前往项目 |
| ⌘R | 前往 method |
| ⌘⇧P | 命令提示 |
| function print_lua_table (lua_table, indent) | |
| indent = indent or 0 | |
| for k, v in pairs(lua_table) do | |
| if type(k) == "string" then | |
| k = string.format("%q", k) | |
| end | |
| local szSuffix = "" | |
| if type(v) == "table" then | |
| szSuffix = "{" | |
| end |
| <?php | |
| /* | |
| OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
| Author: _ck_ (with contributions by GK, stasilok) | |
| Version: 0.1.6 | |
| Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
| * revision history | |
| 0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter | |
| 0.1.5 2013-04-12 added graphs to visualize cache state, please report any browser/style bugs |
This is a Chinese version of https://gist.github.com/1207002/86f48cd3b3b72c85e6293926cf7c730de03b2f08 from lucasfais
| ⌘T | 前往文件 |
| ⌘⌃P | 前往项目 |
| ⌘R | 前往 method |
| ⌘⇧P | 命令提示 |
| function print_lua_table (lua_table, indent) | |
| indent = indent or 0 | |
| for k, v in pairs(lua_table) do | |
| if type(k) == "string" then | |
| k = string.format("%q", k) | |
| end | |
| local szSuffix = "" | |
| if type(v) == "table" then | |
| szSuffix = "{" | |
| end |
| -- Adapted from these sources: | |
| -- http://peterdowns.com/posts/open-iterm-finder-service.html | |
| -- https://gist.github.com/cowboy/905546 | |
| -- | |
| -- Modified to work with files as well, cd-ing to their container folder | |
| on run {input, parameters} | |
| tell application "Finder" | |
| set my_file to first item of input | |
| set filetype to (kind of (info for my_file)) | |
| -- Treats OS X applications as files. To treat them as folders, integrate this SO answer: |