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 CLIEngine = require("eslint").CLIEngine; | |
function getIdentifiers(code) { | |
if (!code) { | |
return []; | |
} | |
var cli = new CLIEngine({ | |
envs: ['browser', 'node'], | |
useEslintrc: false, |
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
# coding PATH | |
CODING_DIR=$HOME/coding | |
export PATH=$CODING_DIR/app/bin:$PATH | |
export PATH=$CODING_DIR/tools/bin:$PATH | |
# PS1 | |
export PS1="[\u@\H:\[\e[0;34m\]\W\[\e[0;0m\]]\$ " | |
# git | |
source $CODING_DIR/tools/git-completion.bash |
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
===================== line 0 ====================== | |
0 Ajpmnxjmz viy nzqzi tzvmn vbj, jpm avoczmn wmjpbco ajmoc pkji ocdn | |
1 Bkqnoykna wjz oaraj uawno wck, kqn bwpdano xnkqcdp bknpd qlkj pdeo | |
2 Clropzlob xka pbsbk vbxop xdl, lro cxqebop yolrdeq cloqe rmlk qefp | |
3 Dmspqampc ylb qctcl wcypq yem, msp dyrfcpq zpmsefr dmprf snml rfgq | |
4 Entqrbnqd zmc rdudm xdzqr zfn, ntq ezsgdqr aqntfgs enqsg tonm sghr | |
5 Fourscore and seven years ago, our fathers brought forth upon this | |
6 Gpvstdpsf boe tfwfo zfbst bhp, pvs gbuifst cspvhiu gpsui vqpo uijt | |
7 Hqwtueqtg cpf ugxgp agctu ciq, qwt hcvjgtu dtqwijv hqtvj wrqp vjku | |
8 Irxuvfruh dqg vhyhq bhduv djr, rxu idwkhuv eurxjkw iruwk xsrq wklv |
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
var factors = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2] | |
var tails = ['1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2'] | |
var provinceMap = { | |
11: '北京', | |
12: '天津', | |
13: '河北', | |
14: '山西', | |
15: '内蒙古', | |
21: '辽宁', | |
22: '吉林', |
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
<div id="counter-app"> | |
<h1>Count: {{count}}</h1> | |
<h2>I will never change</h2> <!-- 这个节点是“纯静态子树”,不必更新,事实上它的确中了全等逻辑 --> | |
<button @click="count++">+1</button> <!-- 这个节点(看起来)也是“纯静态子树”,但它没有中全等逻辑 --> | |
<!-- 不过可以理解,因为它有一个event绑定(但看起来不会影响它的“纯静态”性质) --> | |
<!-- 另外,因为HTML标签之间的换行和空格带来的一些空文本节点也纷纷没有中全等逻辑 --> | |
</div> | |
<script> | |
var vm = new Vue({ |
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 RE_URL_ARRAY = /\[(.*?)\]$/ | |
export function parseQuery(search) { | |
search = search.replace(/^\?/, '') | |
let query = {} | |
search.split('&').forEach(pair => { | |
let kv = pair.split('=') | |
let key = kv[0] | |
let value = kv[1] | |
if (!value) value = '' | |
value = decodeURIComponent(value) |
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
/** | |
斗鱼界面精简 | |
douyutv.com | |
douyu.com | |
*/ | |
#chat-top-ad, | |
#dy_bottom_shadow, | |
.chat-right-ad, | |
.chat_top_pic, |
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
var getCurrentScript = (function () { | |
var supportsScriptReadyState = ('readyState' in document.createElement('script')) | |
var isNotOpera = !window.opera || window.opera.toString() !== "[object Opera]" | |
function getCurrentScript() { | |
if (document.currentScript) { | |
// Chrome, OSX Safari, Firefox, Edge | |
return document.currentScript.src | |
} |
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
/* | |
用于Stylish | |
网址前缀:http://tieba.baidu.com/ | |
*/ | |
/* 列表页的 */ | |
#thread_list>li:not(.j_thread_list)>.t_con, | |
#thread_list>li:not(.j_thread_list)>.iframe_wrapper, | |
#thread_list>li:not(.j_thread_list)>[id^=cpro], | |
#com_u9_head, |
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
[id^="postads"], | |
[id^="bbs_ds"], | |
.adsc, | |
.adsh, | |
#gwd_browser_download | |
{ | |
display: none !important; | |
} |
NewerOlder