ack
aria2
asciinema
bat
ctags
curl
diff-so-fancy
fd
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
interface ModernOrgTreeOptions { | |
container: HTMLElement; | |
nodes?: NodeList; | |
parentPosition?: string; | |
childPosition?: string; | |
} | |
export class ModernOrgTree { | |
parentsPositions = {}; | |
svg; |
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
body,html{ | |
margin:0 | |
} | |
body{ | |
padding:2em | |
} | |
a{ | |
word-break:break-all | |
} | |
pre{ |
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 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 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 request = require('request'); | |
const util = require('util'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const os = require('os'); | |
const get = util.promisify(request.get); | |
const post = util.promisify(request.post); | |
const sleep = (ms) => { |
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
<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"> |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Console] | |
; 00BBGGRR, not RGB! | |
"ColorTable00"=dword:00000000 ; 0 - black | |
"ColorTable04"=dword:000000CD ; 1 - dark red | |
"ColorTable02"=dword:0000CD00 ; 2 - dark green | |
"ColorTable06"=dword:0000CDCD ; 3 - dark yellow | |
"ColorTable01"=dword:00EE0000 ; 4 - dark blue | |
"ColorTable05"=dword:00CD00CD ; 5 - dark magenta |
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
$main-font: "Roboto","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif; | |
$code-font: "Droid Sans Mono", monospace; | |
/* PRETTY PRINTING STYLES for prettify.js. */ | |
.prettyprint { | |
position: relative; | |
} | |
/* Specify class=linenums on a pre to get line numbering */ |
- 柔软的宇宙
- 时间的形状
- 太空全书
- 星空的琴弦
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
#!/bin/sh | |
ESLINT="$(git rev-parse --show-toplevel)/node_modules/.bin/eslint" | |
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".js\{0,1\}$") | |
if [[ "$STAGED_FILES" = "" ]]; then | |
exit 0 | |
fi | |
PASS=true |