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
apt-get update && apt-get install -y curl \ | |
&& curl -sL https://deb.nodesource.com/setup_7.x | bash - \ | |
&& apt-get install -y nodejs |
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
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' | |
sudo apt-get update | |
apt-cache policy docker-engine | |
sudo apt-get install -y docker-engine | |
sudo systemctl status docker |
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 player = require('play-sound')(opts = {}); | |
var sFile = 'hello.wav'; | |
// access the node child_process in case you need to kill it on demand | |
var audio = player.play(sFile, function(err) { | |
if (err && !err.killed) throw err | |
}); | |
setTimeout(function() { |
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
" Blank template for Vader testing | |
" Invoke with `:Vader` | |
" Resources: | |
" https://github.com/junegunn/vader.vim | |
" https://junegunn.kr/2013/10/testing-vimscript-with-vader-vim | |
Before; | |
function! FooBecomesBar() | |
:silent! %s/foo/bar/ | |
endfunction |
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! FormatSwitch() | |
:normal j | |
:normal vi}> | |
:write | |
endfunction | |
nnoremap <silent> <Plug>FormatSwitchPlug :call FormatSwitch()<CR> | |
\:call repeat#set("\<Plug>FormatSwitchPlug")<CR> | |
nmap cFS <Plug>FormatSwitchPlug |
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
sudo apt-get update && sudo apt-get install -y curl && sudo curl -sL https://deb.nodesource.com/setup_10.x | sudo bash - && sudo apt-get install -y nodejs |