-apple-system, /* ios/mac */
BlinkMacSystemFont, /* ios/mac */
"Segoe UI", /* win */
Noto, /* android */
Roboto, /* android */
Oxygen-Sans, /* linux */
Ubuntu, /* linux */
Cantarell, /* linux */
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 re (node, prevNode) { | |
node.next = prevNode.id | |
const prePreNode = findPrev(prePreNode) | |
if (prePreNode === null) { | |
prevNode.next = null | |
} else { | |
re(prevNode, prePreNode) | |
} | |
} |
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
{ | |
"scripts": { | |
"start": "node scripts/start.js", | |
"dev": "NODE_ENV=development SERVER_ENV=development nodemon --exec 'babel-node' server/index.js", | |
"pre": "npm install -g npm-run-all pm2", | |
"build:install": "npm install", | |
"build:client": "node scripts/build.js", | |
"build:server": "babel server -d build-server", | |
"build:serverassets": "NODE_ENV=production webpack --config ./config/webpack.server.assets.config.js", | |
"serve": "node build-server/index", |
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
export SERVER_USER=xxyy | |
export SERVER_IP=xxx.yyy.xxx.yyy | |
export PROJECT_PATH=/home/user/xxyy | |
export PORT=4321 |
has to type javascript:
manually... (
copy to pc browser's address bar
javascript:f=function(){x=window.innerWidth*Math.random();y=window.innerWidth*Math.random();$('canvas').trigger(jQuery.Event("mousedown",{clientX:x,clientY:y})).trigger(jQuery.Event("mouseup", {clientX:x,clientY:y}))};setInterval(f,1500*Math.random());setInterval(f,1500*Math.random())
copy to mobile browser's address bar (a little bit difficult...
Thanks to https://imtx.me/archives/2375.html
Tips about byobu https://askubuntu.com/a/700641
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E 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
execute pathogen#infect() | |
set nocompatible | |
filetype off | |
filetype plugin indent on | |
" color | |
syntax on | |
set nu |
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
# Git branch in prompt. | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " | |
# nvm | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm |