#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
# Install brew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Install composer | |
brew install homebrew/php/composer | |
### PHPCS | |
composer global require "squizlabs/php_codesniffer=*" | |
# Add to your .bash_profile |
<?xml version="1.0" encoding="UTF-8"?> | |
<ruleset name="PHP_CodeSniffer"> | |
<description>The coding standard for PHP_CodeSniffer itself.</description> | |
<exclude-pattern>*/vendor/*</exclude-pattern> | |
<!-- 2. General --> | |
<!-- 2.1 Basic Coding Standard --> | |
<!-- Include the whole PSR-1 standard --> |
zend_extension=xdebug.so | |
xdebug.collect_return=1 | |
xdebug.default_enable=1 | |
xdebug.remote_enable=1 | |
xdebug.remote_connect_back=0 | |
xdebug.remote_host=192.168.10.1 | |
xdebug.remote_port=7777 | |
xdebug.max_nesting_level=512 | |
xdebug.idekey=vagrant | |
xdebug.remote_autostart=1 |
#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
module.exports = { | |
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style | |
'extends': 'standard', | |
'env': { | |
'browser': true, | |
'commonjs': true, | |
'es6': true, | |
'node': true | |
}, | |
'globals': { |
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=759670 | |
// for the documentation about the jsconfig.json format | |
"compilerOptions": { | |
"target": "es6", | |
"module": "commonjs", | |
"allowSyntheticDefaultImports": true | |
}, | |
"exclude": [ | |
"node_modules", |
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit backupGlobals="false" | |
backupStaticAttributes="false" | |
bootstrap="tests/bootstrap.php" | |
colors="true" | |
convertErrorsToExceptions="true" | |
convertNoticesToExceptions="true" | |
convertWarningsToExceptions="true" | |
processIsolation="false" | |
stopOnFailure="false" |
<?xml version="1.0" encoding="UTF-8"?> | |
<ruleset name="PHP_CodeSniffer"> | |
<description>The coding standard for PHP_CodeSniffer itself.</description> | |
<exclude-pattern>*/vendor/*</exclude-pattern> | |
<rule ref="PSR2"/> | |
</ruleset> |
function iteratorDir(dir, recursive) { | |
// 去除尾部的'/'字符 | |
if (dir[dir.length - 1] == '/') { | |
dir = dir.substring(0, dir.length - 1); | |
} | |
var dirList = []; | |
var items = fs.readdirSync(dir); | |
items.forEach((item, index) => { | |
var path = dir + '/' + item; |