-
Install the following command line tools (
npm install -g MODULE)jshintjscsjsxhint
-
Install Sublime Package Control
-
Using package control install Sublime Linter
-
Install the following packages
SublimeLinter-jshint
SublimeLinter-jscs
| Then run the 2 mysql servers with: | |
| /usr/local/bin/mysqld_multi start --tcp-ip 1,2 |
| #!/bin/bash | |
| # Copyright (c) 2002-2013 "Neo Technology," | |
| # Network Engine for Objects in Lund AB [http://neotechnology.com] | |
| # | |
| # This file is part of Neo4j. | |
| # | |
| # Neo4j is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or |
Install the following command line tools (npm install -g MODULE)
jshintjscsjsxhintInstall Sublime Package Control
Using package control install Sublime Linter
Install the following packages
SublimeLinter-jshintSublimeLinter-jscsnpm version lists the current version of your module (if you forgot).npm version x.y.z updates package.json, commits it with the comment "x.y.z" and tags it as vx.y.z.git push && git push --tags && npm publish| "use strict"; | |
| import React from 'react/addons'; | |
| var cx = React.addons.classSet; | |
| var ClassNameMixin = { | |
| propTypes: { | |
| className: React.PropTypes.string | |
| }, |
| gulp.task('test', function(cb) { | |
| var mocha = require('gulp-mocha'); | |
| var React = require('react-tools'); | |
| global.initDOM = function() { | |
| var jsdom = require('jsdom'); | |
| global.window = jsdom.jsdom().createWindow('<html><body></body></html>'); | |
| global.document = global.window.document; | |
| global.navigator = global.window.navigator; |
| { | |
| "ecmaFeatures": { | |
| "arrowFunctions": true, | |
| "binaryLiterals": false, | |
| "blockBindings": true, | |
| "classes": true, | |
| "defaultParams": true, | |
| "destructuring": true, | |
| "forOf": false, | |
| "generators": true, |
Pass the urls you care about to your javascript:
return {
'urls': js_urls(
'foo', # 'foo' => r'^(?P<slug>[a-z0-9-]+)/'
'bar', # 'bar' => r'^bar/(?P<id>[0-9-]+)/'
),
}| SELECT CONCAT(table_schema, '.', TABLE_NAME), | |
| CONCAT(ROUND(table_rows / 1000, 2), 'K') ROWS, | |
| CONCAT(ROUND(data_length / ( 1024 * 1024 ), 2), 'M') DATA, | |
| CONCAT(ROUND(index_length / ( 1024 * 1024 ), 2), 'M') idx, | |
| CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 ), 2), 'M') total_size, | |
| ROUND(index_length / data_length, 2) idxfrac | |
| FROM information_schema.TABLES | |
| ORDER BY data_length + index_length DESC; |