- In the application toolbar
Select Sublime Text > Preferences > Package Settings > Either Babel or ESLint > Settings Default - Find the setting for the
node_modulesinstall path in OS X
- currently located at
/usr/local/lib/node_modules
Select Sublime Text >
Preferences >
Package Settings >
Either Babel or ESLint >
Settings Default
node_modules install path in OS X/usr/local/lib/node_modulesA Pen by Codemash D3 Presentation on CodePen.
| try: | |
| import sqlparse.format as sqlformat | |
| except ImportError: | |
| def sqlformat(query, **kwargs): | |
| """Monkey patch sqlparse.format if package not installed""" | |
| return query | |
| def debug_query(query, engine): | |
| """Return a parametrized and formated sql query for debugging |
| //How to validate selectize.js comboboxes with the jQuery validation plugin | |
| //selectize.js: http://brianreavis.github.io/selectize.js/ (brianreavis/selectize.js) | |
| //http://jqueryvalidation.org (jzaefferer/jquery-validation) | |
| //configure jquery validation | |
| $("#commentForm").validate({ | |
| //the default ignore selector is ':hidden', the following selectors restore the default behaviour when using selectize.js | |
| //:hidden:not([class~=selectized]) | selects all hidden elements, but not the original selects/inputs hidden by selectize | |
| //:hidden > .selectized | to restore the behaviour of the default selector, the original selects/inputs are only validated if their parent is visible | |
| //.selectize-control .selectize-input input | this rule is not really necessary, but ensures that the temporary inputs created by selectize on the fly are never validated |