This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const cp = require('child_process'); | |
const fs = require('fs'); | |
cp.exec('eslint --print-config ./eslintrc.js', {}, (err, stdout, stderr) => { | |
if (stderr) { | |
console.log(stderr); | |
return; | |
} | |
fs.writeFileSync('./.eslintrc', stdout); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// List all files in a directory in Node.js recursively in a synchronous fashion | |
var walkSync = function(dir, filelist) { | |
var fs = fs || require('fs'), | |
files = fs.readdirSync(dir); | |
filelist = filelist || []; | |
files.forEach(function(file) { | |
if (fs.statSync(dir + file).isDirectory()) { | |
filelist = walkSync(dir + file + '/', filelist); | |
} | |
else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// JSHint Default Configuration File (as on JSHint website) | |
// See http://jshint.com/docs/ for more details | |
//jshint options document: [http://jshint.com/docs/options/#strict](http://jshint.com/docs/options/#strict) | |
"maxerr" : 50, // {int} 超过{int}个错误后,停止检测错误 | |
// Enforcing | |
"bitwise" : false, // true: 禁止使用位逻辑符 (&, |, ^, ...) | |
"camelcase" : false, // true: 变量名必须是驼峰风格 |
快捷键 | 功能 |
---|---|
cmd + shift + p | 打开命令菜单 |
cmd + t | 模糊搜索工作目录下的文件 |
cmt + b | 搜索已经打开的文件 |
ctrl + 0 | 焦点移动到文件目录 |
cmd + \ | 隐藏左侧目录树 |
ctrl + [ | 目录中展开结点 |
ctrl + ] | 目录中缩起结点 |
d / a / m | 对目录选中的结点进行 删除 / 添加 / 移动 |
- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
- lxml - Pythonic binding for the C libraries libxml2 and libxslt.
- boto - Python interface to Amazon Web Services
- Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
- Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
- PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
- Celery - Task queue to distribute work across threads or machines.
- pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.
NewerOlder