Skip to content

Instantly share code, notes, and snippets.

@startswithaj
startswithaj / ts-jest.sh
Created December 1, 2016 02:48 — forked from simon-lang/ts-jest.sh
typescript, jest
yarn init
yarn add typescript jest ts-jest
tsc --init
typings install dt~jasmine --save --global
jest
@startswithaj
startswithaj / project-init.sh
Created December 1, 2016 02:48 — forked from simon-lang/project-init.sh
project-init.sh
# 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
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)