Real unit test (isolation, no children render)
Calls:
- constructor
- render
| // Promise.all is good for executing many promises at once | |
| Promise.all([ | |
| promise1, | |
| promise2 | |
| ]); | |
| // Promise.resolve is good for wrapping synchronous code | |
| Promise.resolve().then(function () { | |
| if (somethingIsNotRight()) { | |
| throw new Error("I will be rejected asynchronously!"); |
| gulp.task('deploy', function(cb) { | |
| var publisher = $.awspublish.create(aws); | |
| var headers = {'Cache-Control': 'max-age=315360000, no-transform, public'}; | |
| return gulp.src('dist/**') | |
| .pipe($.awspublish.gzip()) | |
| .pipe(publisher.publish(headers)) | |
| .pipe(publisher.cache()) | |
| .pipe($.awspublish.reporter()) | |
| .pipe($.cloudfront(aws)) | |
| .on('end', function() { |
| <script name="tophatvariables"> | |
| email="mostafa@tophat.com" | |
| username="mostafaprof" | |
| userFirstName="Mostafa" | |
| userLastName="Younis" | |
| </script> | |
| <script type='text/javascript' src='https://c.la4-c2-was.salesforceliveagent.com/content/g/js/37.0/deployment.js'></script> |
#Comprehensive Introduction to @ngrx/store By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
| # first: | |
| lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
| sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
| # To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
| # go to /usr/local/lib and delete any node and node_modules | |
| cd /usr/local/lib | |
| sudo rm -rf node* |
| mike@rbci:~$ psql -U postgres | |
| psql (9.0.3) | |
| Type "help" for help. | |
| postgres=# update pg_database set datallowconn = TRUE where datname = 'template0'; | |
| UPDATE 1 | |
| postgres=# \c template0 | |
| You are now connected to database "template0". | |
| template0=# update pg_database set datistemplate = FALSE where datname = 'template1'; | |
| UPDATE 1 |
| require.config({ | |
| baseUrl: '/backbone-tests/', | |
| paths: { | |
| 'jquery' : '/app/libs/jquery', | |
| 'underscore' : '/app/libs/underscore', | |
| 'backbone' : '/app/libs/backbone', | |
| 'mocha' : 'libs/mocha', | |
| 'chai' : 'libs/chai', | |
| 'chai-jquery' : 'libs/chai-jquery', | |
| 'models' : '/app/models' |