Skip to content

Instantly share code, notes, and snippets.

@weslleyaraujo
weslleyaraujo / Build_Vim7.4_CentOS7.txt
Created Oct 10, 2017 — forked from junxie6/Build_Vim7.4_CentOS7.txt
Compile the latest Vim 7.4 on CentOS 7
View Build_Vim7.4_CentOS7.txt
Compile the latest Vim 7.4 on CentOS 7
# yum install gcc make ncurses ncurses-devel
# yum install ruby ruby-devel lua lua-devel luajit \
luajit-devel ctags git python python-devel \
python3 python3-devel tcl-devel \
perl perl-devel perl-ExtUtils-ParseXS \
perl-ExtUtils-XSpp perl-ExtUtils-CBuilder \
perl-ExtUtils-Embed
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View package.json
{
"private": true,
"scripts": {
"build:js": "browserify -e source/scripts/index.js -t [ babelify --optional es7 ] -o public/bundle.js",
"build:css": "cssnext source/styles/index.css public/bundle.css",
"build": "npm run js && npm run css",
"watch:js": "watchy -w source/scripts -- npm run build:js",
"watch:css": "watchy -w source/styles -- npm run build:css"
},
"dependencies": {},
@weslleyaraujo
weslleyaraujo / destructuring.js
Created Oct 14, 2015 — forked from mikaelbr/destructuring.js
Several demos and usages for ES6 destructuring.
View destructuring.js
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => {
return [1, 2, 3];