This file contains hidden or 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 update | |
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh -o install_nvm.sh | |
bash install_nvm.sh | |
source ~/.profile | |
nvm install --lts | |
npm install jesse -g | |
snap install ffsend | |
apt install screen | |
apt-get install zsh | |
apt-get install git-core |
This file contains hidden or 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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Jesse BackTest", | |
"program": "${workspaceRoot}/node_modules/.bin/ts-node", | |
"args": ["${workspaceFolder}/index.ts"], | |
"protocol": "inspector", |
This file contains hidden or 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 install zsh | |
apt-get install git-core | |
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh | |
# and then you change your shell to zsh | |
chsh -s `which zsh` | |
# and then restart | |
#sudo shutdown -r 0 |
This file contains hidden or 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
# update ubuntu | |
sudo apt update | |
# install nvm | |
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh -o install_nvm.sh | |
bash install_nvm.sh | |
source ~/.profile | |
# install node + npm | |
nvm install --lts |
This file contains hidden or 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
# To see where global packages (and which packages) are installed | |
npm list -g | |
# set new path for global packages: | |
mkdir ~/.global-modules | |
# add to ~/.npmrc: | |
npm config set prefix "~/.global-modules" | |
# then load it in ~/.zshrc: | |
export PATH=~/.global-modules/bin:$PATH |
This file contains hidden or 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
add it to the data: | |
isInViewPort: false | |
listen for scroll event: | |
this.$eventHub.$on('scrolled', this.setViewPort); | |
action: | |
/** | |
* is the element in view port | |
* |
This file contains hidden or 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
router.afterEach((to, from) => { | |
(function(i, s, o, g, r, a, m) { | |
i['GoogleAnalyticsObject'] = r; | |
i[r] = i[r] || function() { | |
(i[r].q = i[r].q || []).push(arguments) | |
}, i[r].l = 1 * new Date(); | |
a = s.createElement(o), | |
m = s.getElementsByTagName(o)[0]; | |
a.async = 1; | |
a.src = g; |
NewerOlder