Skip to content

Instantly share code, notes, and snippets.

View HuangXiZhou's full-sized avatar
:shipit:
摸鱼中(working)...

Amigooo HuangXiZhou

:shipit:
摸鱼中(working)...
View GitHub Profile
@HuangXiZhou
HuangXiZhou / !.gif
Last active April 11, 2019 14:23
!
!.gif
@HuangXiZhou
HuangXiZhou / NOW.gif
Last active April 11, 2019 14:22
NOW
NOW.gif
@HuangXiZhou
HuangXiZhou / HAPPY.gif
Last active April 11, 2019 14:21
HAPPY
HAPPY.gif
@HuangXiZhou
HuangXiZhou / VERY.gif
Last active April 11, 2019 14:19
VERY
VERY.gif
@HuangXiZhou
HuangXiZhou / AM.gif
Last active April 11, 2019 14:18
AM
AM.gif
@HuangXiZhou
HuangXiZhou / toUnderscore.js
Created February 20, 2019 15:22
toUnderscore
function toUnderscore(string) {
return string.toString().split(/(?=[A-Z])/).join('_').toLowerCase();
};
@HuangXiZhou
HuangXiZhou / former-doc.css
Created February 8, 2019 05:13
former doc style
.vuepress-plugin-demo-block__wrapper .vuepress-plugin-demo-block__footer:hover .vuepress-plugin-demo-block__expand::before,
.vuepress-plugin-demo-block__wrapper .vuepress-plugin-demo-block__footer:focus .vuepress-plugin-demo-block__expand::before,
.vuepress-plugin-demo-block__wrapper .vuepress-plugin-demo-block__footer:visited .vuepress-plugin-demo-block__expand::before {
border-top-color: #2B66C4 !important;
border-bottom-color: #2B66C4 !important;
}
.vuepress-plugin-demo-block__wrapper .vuepress-plugin-demo-block__footer .vuepress-plugin-demo-block__expand::before,
.vuepress-plugin-demo-block__wrapper .vuepress-plugin-demo-block__footer svg {
transition: all .2s ease;
@HuangXiZhou
HuangXiZhou / FBI.sh
Created February 1, 2019 07:20
FBI WARNING
# _/_/_/_/ _/_/_/ _/_/_/
# _/ _/ _/ _/
# _/_/_/ _/_/_/ _/
# _/ _/ _/ _/
# _/ _/_/_/ _/_/_/
_COLUMNS=$(tput cols)
_MESSAGE=" FBI Warining "
y=$((($_COLUMNS - ${#_MESSAGE}) / 2))
spaces=$(printf "%-${y}s" " ")
@HuangXiZhou
HuangXiZhou / LruCache.js
Created April 27, 2018 00:17
JavaScript LruCache
class LruCache {
constructor(maxsize) {
this._cache = {}; // 缓存
this._queue = []; // 队列
this._maxsize = maxsize; // 最大值
// 如果最大值输入非法 默认无限大
if (!this._maxsize || !(typeof this._maxsize === 'number') || this._maxsize <= 0) {
this._maxsize = Infinity;
}