# cli
V=`nginx -v 2>&1 | tee`; echo "var re = /command not found/; var no = '$V'.match(re); if (no) { console.log('$V'.replace(re,'You don\'t have')) } else{ console.log('$V'.split('/').pop()) }" | node
# package
"scripts": {
"nginx:v": "V=`nginx -v 2>&1 | tee`; echo \"var re = /command not found/; var no = '$V'.match(re); if (no) { console.log(unescape('$V'.replace(re,'You don%27t have'))) } else{ console.log('$V'.split('/').pop()) }\" | node"
}
This file contains 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
# http://editorconfig.org | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 2 | |
indent_style = space | |
insert_final_newline = true | |
max_line_length = 120 |
This file contains 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 wait (delay = 1000) { | |
return new Promise((resolve) => { | |
setTimeout(() => { | |
resolve() | |
}, delay) | |
}) | |
} |
This file contains 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
window.location.hash.match(/user=([^&]+)/) |
This file contains 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
warning @ warning.js:48 | |
checkPropTypes @ ReactElementValidator.js:256 | |
validatePropTypes @ ReactElementValidator.js:366 | |
createElement @ ReactElementValidator.js:408 | |
(anonymous) @ UnifiedTableFixed.jsx:738 | |
(anonymous) @ index.js:2874 | |
arrayMap @ index.js:1406 | |
map @ index.js:6710 | |
_renderColumns @ UnifiedTableFixed.jsx:733 | |
(anonymous) @ UnifiedTableFixed.jsx:716 |
This file contains 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(){ | |
var util = (function(){ | |
var Queue = function Queue(){ | |
var methods = [], | |
flushed = false, | |
add = function( fn ){ | |
if( flushed ) { | |
fn( response ); | |
} else { | |
methods.push( fn ); |
This file contains 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
npm run test:jenkins -- --browsers=Chrome |
This file contains 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
window.name=` | |
()=>{ | |
const i=0 | |
function step(num){window.name = window.name.split('i='+num).join('i='+(num+1))} | |
const commands=[ | |
()=>{ | |
step(0) | |
document.forms[0].username.value = 'username' | |
document.forms[0].password.value = 'password' | |
}, |
This file contains 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 equalizeTimezoneOffset (dateString) { | |
const parsedDate = new Date(dateString) | |
parsedDate.setMinutes(parsedDate.getMinutes() - parsedDate.getTimezoneOffset()) | |
return parsedDate | |
} |
This file contains 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
(() => { | |
const libs = [ | |
'https://cdnjs.cloudflare.com/ajax/libs/jstimezonedetect/1.0.6/jstz.min.js' | |
].map((src) => { | |
return new Promise(resolve => { | |
const script = document.createElement("script"); script.src = src; script.async = false; | |
script.onload = () => { | |
resolve(); | |
}; | |
document.head.appendChild(script); |