I hereby claim:
- I am awkale on github.
- I am alexkale (https://keybase.io/alexkale) on keybase.
- I have a public key ASDK9VTdby4W-27Rornx2uWoe6C0rQ-g5EKcO_rRYY6f2Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <!-- The page we're linking to gains partial access to the linking page via the window.opener object. --> | |
| target='_blank' | |
| <!-- to prevent access, add --> | |
| rel="noopener" | |
| <!-- FF does not support "noopener" so add this --> | |
| rel="noopener noreferrer" | |
| <!-- window.open(); you're also "vulnerable" to this, so always reset the "opener" property --> | |
| <script> |
| // find an object in an array based on object property | |
| var objArray = [ | |
| { id: 0, name: 'Object 0', otherProp: '321' }, | |
| { id: 1, name: 'O1', otherProp: '648' }, | |
| { id: 2, name: 'Another Object', otherProp: '850' }, | |
| { id: 3, name: 'Almost There', otherProp: '046' }, | |
| { id: 4, name: 'Last Obj', otherProp: '984' } | |
| ]; | |
| $filter('filter')(objArray, {id: 3}, true)[0]; |
| // find an object in an array based on object property | |
| const objArray = [ | |
| { id: 0, name: 'Object 0', otherProp: '321' }, | |
| { id: 1, name: 'O1', otherProp: '648' }, | |
| { id: 2, name: 'Another Object', otherProp: '850' }, | |
| { id: 3, name: 'Almost There', otherProp: '046' }, | |
| { id: 4, name: 'Last Obj', otherProp: '984' } | |
| ]; | |
| let obj = objArray.find(function (obj) { return obj.id === 3; }); |
| npm list -g --depth=0 | |
| // lists globally installed packages | |
| npm outdated -g --depth=0 | |
| // lists globally outdated packages | |
| npm update -g | |
| // updates all globally installed packages |
| virtualenv -p python3 env | |
| # starts virtual environment | |
| . ./env/bin/activate | |
| # reloads to work in virtual environment |
| :q[uit] | |
| # Quit Vim. This fails when changes have been made. | |
| :q[uit]! | |
| # Quit without writing. | |
| :cq[uit] | |
| # Quit always, without writing. | |
| :wq |
| # | |
| # GETTING STARTED | |
| # | |
| git init | |
| # initializes current folder as a git repository | |
| git clone url | |
| # copies remote git folder to local directory |
| sudo killall VDCAssistant | |
| sudo killall AppleCameraAssistant |