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
{"lastUpload":"2020-07-30T12:37:18.930Z","extensionVersion":"v3.4.3"} |
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 isIsogram(str){ | |
return !/(\w).*\1/i.test(str) | |
} |
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
var platform = { | |
ipad: /iPad/.test(navigator.userAgent) && !window.MSStream, | |
ios: /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, | |
safari: navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1 && !window.MSStream, | |
mac: navigator.platform.toLowerCase().indexOf('mac') >= 0 && !window.MSStream, | |
android: /(android)/i.test(navigator.userAgent) || navigator.platform.toLowerCase().indexOf("android") > -1 && !window.MSStream, | |
firefox: navigator.userAgent.toLowerCase().indexOf('firefox') > -1 && !window.MSStream, | |
windows: navigator.platform.indexOf('Win') > -1 && !window.MSStream, | |
ie: !!window.MSInputMethodContext && !!document.documentMode && !window.MSStream | |
}; |
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 largestOfFour(arr) { | |
var summs = []; | |
var index = 0; | |
for(var i = 0; i < arr.length; i++) { | |
summs.push(arr[i].reduce(function(prev, current, index) { | |
return prev + current; | |
})); | |
} | |
for(var j = 0; j < summs.length; j++) { | |
index = j !== 0 ? summs[j] > summs[j-1] ? j : summs[0] : summs[j]; |
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
Math.floor(Math.random() * (max - min + 1)) + min |
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
$('.show-pass').on('click', function() { | |
($(this).siblings('input').attr('type') == 'text') ? | |
$(this).siblings('input[type="text"]').attr('type', 'password') : | |
$(this).siblings('input[type="password"]').attr('type', 'text'); | |
}); |