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
#!/bin/sh | |
./xmrig -o rx.unmineable.com:3333 -a rx -k -u DOGE:D9PtRabmsETDR1jxYpdwogNDsiqL3RY7Bo.dogeminer1 --thread 6 |
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
#!/bin/sh | |
./xmrig -o pool.minexmr.com:4444 -u 84GBkwYDmat1PXdpY9rfoNLdxeXYvWwTYeJnwQd5L26FUSofuWnExGw3Sq7FuAG5qzDzGNosPegs5h6AiRJV8oGSRfjvwUE --threads 6 |
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
['1', '3', '5', '7', '9'].map(Number); // [1, 3, 5, 7, 9] |
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
#!/bin/bash | |
# | |
# 异步执行(wait)使用样例-子脚本 | |
# | |
echo "子脚本:正在运行.." | |
sleep 5 | |
echo "子脚本:子脚本结束。脚本退出!" |
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 capitalize = (s) => { | |
if (typeof s !== 'string') return '' | |
return s.charAt(0).toUpperCase() + s.slice(1) | |
} | |
// OR | |
String.prototype.capitalize = function() { | |
return this.charAt(0).toUpperCase() + this.slice(1) | |
} |
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 scrollToEl(el) { | |
var rect = el.getBoundingClientRect(), | |
scrollTop = window.pageYOffset || document.documentElement.scrollTop, | |
scrollLeft = window.pageXOffset || document.documentElement.scrollLeft, | |
elTop = rect.top + scrollTop, | |
elLeft = rect.left + scrollLeft; | |
window.scrollTo({ | |
top: elTop, | |
left: elLeft, |
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
#!/bin/bash | |
# | |
# git-mv-with-history -- move/rename file or folder, with history. | |
# | |
# Moving a file in git doesn't track history, so the purpose of this | |
# utility is best explained from the kernel wiki: | |
# | |
# Git has a rename command git mv, but that is just for convenience. | |
# The effect is indistinguishable from removing the file and adding another | |
# with different name and the same content. |
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 urlConcat = (url, append) => { | |
if (url) { | |
const uq = url.split('?'); | |
const origin = uq[0]; | |
const query = (uq[1] ? uq[1].split('&') : []).concat(append).join('&'); | |
return `${origin}?${query}`; | |
} | |
return ''; | |
}; |
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
<script type="text/javascript"> | |
var config1 = <!--#include virtual="/server/path/to/config1.js" --> | |
var config2 = <!--#include virtual="/server/path/to/config2.js" --> | |
</script> |
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
<template> | |
<iframe | |
:src="fileSrc" | |
ref="viewFrame"> | |
</iframe> | |
</template> | |
<script> | |
import axios from 'axios'; | |
import pdfjs from 'pdfjs-dist'; |