A Pen by Benjamin Cortes on CodePen.
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
| const path = require('path'); | |
| const fs = require('fs'); | |
| const file = path.join(__dirname, '../' + process.argv[2]); | |
| const fileJSON = require(file); | |
| delete fileJSON.dependencies; | |
| delete fileJSON.eslintConfig; | |
| delete fileJSON.devDependencies; | |
| delete fileJSON.scripts; |
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
| syntax on | |
| set number | |
| filetype plugin indent on | |
| set tabstop=2 shiftwidth=2 expandtab | |
| set backspace=indent,eol,start |
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
| var colors = document.querySelectorAll('.sweet-color'); | |
| colors.forEach(e => { | |
| let styles = window.getComputedStyle(e); | |
| console.log(styles["background-color"]); | |
| }); |
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
| git fetch --all | |
| git reset --hard origin/master | |
| git pull origin master |
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
| let person1 = { | |
| name: 'Ben' | |
| } | |
| let person2 = { | |
| name: 'Christina' | |
| } | |
| function logName() { | |
| return this.name; |
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
| // easing functions http://goo.gl/5HLl8 | |
| Math.easeInOutQuad = function (t, b, c, d) { | |
| t /= d/2; | |
| if (t < 1) { | |
| return c/2*t*t + b | |
| } | |
| t--; | |
| return -c/2 * (t*(t-2) - 1) + b; | |
| }; |
#VIM Simple VIM commands Use as a refernace for basic commands in VIM/VI https://vimgifs.com/
| Commands | Description |
|---|---|
| esc | toggle between command mode or edit mode |
| shift : | enter command mode |
Practical git commands, this will be updated as needed and by needed I mean as I need to remember things I don't know
| Commands | Description |
|---|---|
| git --version | git version |
| git checkout [branchname] | go to branch **first step before any work is done |
| git status | check status of git repositories |
| git checkout -b [branchname] | create new branch from current branch |
| git branch -D [branchname] | delete local branch |
#Angular-cli oh shit!
https://cli.angular.io/reference.pdf
| Commands | Description |
|---|---|
| ng help | returns all commands with flags they can take as a param |
| ng new [project-name] | create a brand new angular project with live server BANG! |
| ng init | grabs name from folder that already exist |
NewerOlder