# 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 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
window.location.hash.match(/user=([^&]+)/) |
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
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 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
npm run test:jenkins -- --browsers=Chrome |
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
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 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 equalizeTimezoneOffset (dateString) { | |
const parsedDate = new Date(dateString) | |
parsedDate.setMinutes(parsedDate.getMinutes() - parsedDate.getTimezoneOffset()) | |
return parsedDate | |
} |
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
(() => { | |
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); |
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
/*========== Mobile First Method ==========*/ | |
/* Custom, iPhone Retina */ | |
@media only screen and (min-width : 320px) { | |
} | |
/* Extra Small Devices, Phones */ | |
@media only screen and (min-width : 480px) { |
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 getToday() { | |
var today = new Date(); | |
today.setHours(12); | |
return today.toISOString(); | |
} |
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(input){ | |
function solution(A){ | |
var input = (function(bachelor){ | |
if (typeof A !== "object") throw new Error("A is not an object."); | |
if (typeof A.split === "function") throw new Error("A is not an array."); | |
if (!(A.length % 2)) throw new Error("A.length even."); | |
return { | |
squashCouples: function(lookup){ | |
lookup = {}; |