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
yarn init | |
yarn add typescript jest ts-jest | |
tsc --init | |
typings install dt~jasmine --save --global | |
jest |
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
# project init | |
mkdir project-name | |
cd project-name | |
touch README.md | |
mkdir src dist | |
echo "console.log('hello world')" > src/entry.js | |
echo '<script src="bundle.js"></script>' > dist/index.html |
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
ps = angular.element('ui-view').scope() | |
ms = angular.element('.modal-window > *:eq(0)').scope() | |
s = ms || ps | |
c = s.lCtrl || s.mcCtrl || s.luCtrl || s.ipCtrl || s.viewContestCtrl || s.myLineupsCtrl || s.llCtrl || s.aCtrl | |
vm = c.vm | |
// optional: | |
console.clear() | |
console.log('vm', vm) | |
if (t = vm.contests || vm.athletes) console.table(t) |