Skip to content

Instantly share code, notes, and snippets.

@huawww
huawww / buf.js
Last active December 20, 2016 08:30
ascii2str
//nodejs v6.4.0
console.log("Hello, World!");
var s = 's';
var charCode = s.charCodeAt(0);
console.log(charCode);
var buf = Buffer.from([charCode], 'ascii');
console.log(buf.toString());
" https://github.com/junegunn/vim-plug
call plug#begin('~/.local/share/nvim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'editorconfig/editorconfig-vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug '907th/vim-auto-save'
Plug 'w0rp/ale'
Plug 'ervandew/supertab'
Plug 'mxw/vim-jsx'
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)