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> |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width,initial-scale=1.0"> | |
| <title>Object-Fit CSS test</title> | |
| <style type="text/css"> | |
| body { | |
| font-family: Verdana, Sans-Serif, Arial, Tahoma; | |
| font-size: 14px; |
#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!
| <?php | |
| trait InstanceBuilderTrait | |
| { | |
| /** | |
| * Instantiates object of type $self and populates from input | |
| * | |
| * @static | |
| * @access public | |
| * @param array $input Empty array by default |
| package main | |
| import ( | |
| "golang.org/x/tour/tree" | |
| "fmt" | |
| ) | |
| // Walk walks the tree t sending all values | |
| // from the tree to the channel ch. | |
| func Walk(t *tree.Tree, ch chan int) { |
| package main | |
| import ( | |
| "io" | |
| "os" | |
| "strings" | |
| ) | |
| type rot13Reader struct { | |
| r io.Reader |