- Tap to click
- Disable smart quotes
- Use three finger to drag&drop
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 gulp = require('gulp') | |
var sass = require('gulp-sass') | |
var concat = require('gulp-concat') | |
var uglify = require('gulp-uglify') | |
var cleanCss = require('gulp-clean-css') | |
var gutil = require('gulp-util') | |
var env = require('gulp-environments') | |
var htmlmin = require('gulp-htmlmin') | |
var connect = require('gulp-connect') |
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 |
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 |
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 -
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...
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 |
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", |
OlderNewer