- 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;
});
var objSettings = {};
[].forEach.call(document.querySelectorAll('.rule-list__item a'), function (element) {
objSettings[element.text] = true;
});
// http://jscs.info/rules.html | |
{ | |
"verbose": true, | |
"excludeFiles": ["node_modules/**", "bower_components/**", ".tmp/**"], | |
"maxErrors": 20, | |
"disallowAnonymousFunctions": true, | |
//"disallowCapitalizedComments": true, | |
//"disallowCommaBeforeLineBreak": true, | |
"disallowCurlyBraces": null, |
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%'; |
<!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"> |
'use strict'; | |
class Person { | |
constructor (strName) { | |
this._name = strName; | |
console.log('My name is', this._name); | |
} | |
eat () { | |
console.log(this._name, 'is eating!'); | |
} |
html, body { | |
height: 100%; | |
width: 100%; | |
margin: 0; | |
} | |
body { | |
background-color: #ededed; | |
} |
(function (window) { | |
'use strict'; | |
// Global configuration for web-font: | |
window.WebFontConfig = { | |
google: { | |
families: [ 'Oxygen:700,400:latin' ] | |
}, | |
timeout: 2000 | |
}; |
import Ember from 'ember'; | |
export function fallback(params/*, hash*/) { | |
return params[0] || params[1]; | |
} | |
export default Ember.Helper.helper(fallback); |
import Ember from 'ember'; | |
export function bindHtml(params/*, hash*/) { | |
return Ember.String.htmlSafe(params[0]); | |
} | |
export default Ember.Helper.helper(bindHtml); |
import Ember from 'ember'; | |
/** | |
* Performs weak equality comparison between two objects | |
* @param params | |
* @returns {boolean} | |
*/ | |
export function eqw(params/*, hash*/) { | |
/*jslint eqeq: true*/ | |
return params[0] == params[1]; |