- Open JSCS - Rules page
- Open your browser's console and run the following script:
var objSettings = {};
[].forEach.call(document.querySelectorAll('.rule-list__item a'), function (element) {
objSettings[element.text] = true;
});| (function (window) { | |
| 'use strict'; | |
| // Global configuration for web-font: | |
| window.WebFontConfig = { | |
| google: { | |
| families: [ 'Oxygen:700,400:latin' ] | |
| }, | |
| timeout: 2000 | |
| }; |
| html, body { | |
| height: 100%; | |
| width: 100%; | |
| margin: 0; | |
| } | |
| body { | |
| background-color: #ededed; | |
| } |
| 'use strict'; | |
| class Person { | |
| constructor (strName) { | |
| this._name = strName; | |
| console.log('My name is', this._name); | |
| } | |
| eat () { | |
| console.log(this._name, 'is eating!'); | |
| } |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>AngularJS - 2 modules, One page</title> | |
| <meta name="feditor:preset" content="default"/> | |
| </head> | |
| <body> | |
| <div id="first" data-ng-app="SampleApp1"> |
| SELECT t.[text] | |
| FROM sys.dm_exec_cached_plans AS p | |
| CROSS APPLY sys.dm_exec_sql_text(p.plan_handle) AS t | |
| WHERE t.[text] LIKE N'%PART_OF_YOUR_QUERY%'; |
| // http://jscs.info/rules.html | |
| { | |
| "verbose": true, | |
| "excludeFiles": ["node_modules/**", "bower_components/**", ".tmp/**"], | |
| "maxErrors": 20, | |
| "disallowAnonymousFunctions": true, | |
| //"disallowCapitalizedComments": true, | |
| //"disallowCommaBeforeLineBreak": true, | |
| "disallowCurlyBraces": null, |
var objSettings = {};
[].forEach.call(document.querySelectorAll('.rule-list__item a'), function (element) {
objSettings[element.text] = true;
});| body { | |
| } |
| // Returns a function, that, as long as it continues to be invoked, will not | |
| // be triggered. The function will be called after it stops being called for | |
| // N milliseconds. If `immediate` is passed, trigger the function on the | |
| // leading edge, instead of the trailing. | |
| function debounce(func, wait, immediate) { | |
| var timeout; | |
| return function() { | |
| var context = this, args = arguments; | |
| var later = function() { | |
| timeout = null; |
| var Singleton = (function () { | |
| var instance; | |
| function createInstance() { | |
| var object = new Object("I am the instance"); | |
| return object; | |
| } | |
| return { | |
| getInstance: function () { |