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
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="ProjectCodeStyleSettingsManager"> | |
<option name="PER_PROJECT_SETTINGS"> | |
<value> | |
<JSCodeStyleSettings> | |
<option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" /> | |
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" /> | |
<option name="USE_DOUBLE_QUOTES" value="false" /> | |
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" /> |
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
{ | |
"extends" : "airbnb", | |
"env" : { | |
"browser" : true | |
}, | |
"globals" : { | |
"__DEV__" : false, | |
"__PROD__" : false, | |
"__DEBUG__" : false, | |
"__DEBUG_NW__" : false |
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
function FindProxyForURL(url, host) { | |
// If the hostname matches, send direct. | |
if (dnsDomainIs(host, ".intranet.domain.com") || | |
shExpMatch(host, "(*.abcdomain.com|abcdomain.com)")) | |
return "DIRECT"; | |
// If the protocol or URL matches, send direct. | |
if (url.substring(0, 4)=="ftp:" || | |
shExpMatch(url, "http://abcdomain.com/folder/*")) |
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
function sum(args){ | |
return Array.prototype.reduce.call(args, function(a, b){ return a + b }, 0) | |
} | |
function add(){ | |
var total = sum(arguments), | |
self = function(){ total += sum(arguments); return self } | |
return (self.valueOf = function(){ return total }, self) | |
} | |