- 柔软的宇宙
- 时间的形状
- 太空全书
- 星空的琴弦
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
alias git_as_gucheng='git config user.name "Cheng Gu" && git config user.email "guchengf@gmail.com" && git config user.signingKey xxxxx' |
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
@-moz-document domain("www.douyu.com") { | |
.layout-Player-toolbar, | |
.layout-Player-asideMain, | |
.layout-Player-announce, | |
.ChatRank-rankWraper, | |
.FansRankInfo, | |
.ChatTabContainer-titleWraper--tabLi, | |
.ChatTabContainer-titleWraper--tabLi.is-active, | |
.layout-Player-barrage, | |
.PlayerToolbar-signCont { |
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 readablizeBytes(bytes) { | |
var s = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB']; | |
var e = Math.floor(Math.log(bytes)/Math.log(1024)); | |
return (bytes/Math.pow(1024, Math.floor(e))).toFixed(2)+" "+s[e]; | |
} |
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
interface ModernOrgTreeOptions { | |
container: HTMLElement; | |
nodes?: NodeList; | |
parentPosition?: string; | |
childPosition?: string; | |
} | |
export class ModernOrgTree { | |
parentsPositions = {}; | |
svg; |
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
body,html{ | |
margin:0 | |
} | |
body{ | |
padding:2em | |
} | |
a{ | |
word-break:break-all | |
} | |
pre{ |
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 generateQueryParams = (obj) => { | |
if (typeof obj !== 'object') { | |
return ''; | |
} | |
const strs = []; | |
Object.keys(obj).forEach((key) => { | |
const k = encodeURIComponent(key); | |
const item = obj[key]; | |
if (Array.isArray(item)) { | |
item.forEach((i) => { |
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
A15B-A7F3-A6A4-23 |
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
<fieldset class="radio-switch"> | |
<legend> | |
Settings | |
</legend> | |
<input type="radio" name="lol" id="public"> | |
<label for="public"> | |
On | |
</label> | |
<input type="radio" name="lol" id="private"> |