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!
Table of Contents
| function logClass(target: any) { | |
| // save a reference to the original constructor | |
| var original = target; | |
| // a utility function to generate instances of a class | |
| function construct(constructor, args) { | |
| var c : any = function () { | |
| return constructor.apply(this, args); | |
| } |
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!
Table of Contents
| /** | |
| * Triangle CSS Shape | |
| * https://css-tricks.com/examples/ShapesOfCSS/ | |
| * @usage @include triangle('down', 10px, #111) | |
| */ | |
| @mixin triangle ($direction: 'up', $size: 100px, $color: red){ | |
| width: 0; | |
| height: 0; | |
| @if $direction == 'up' { |
| function* delays() { | |
| let a = yield delay(800, "Hello, I'm an"); | |
| console.log(a); | |
| let b = yield delay(400, "async coroutine!"); | |
| console.log(b); | |
| } | |
| const coroutine = nextValue => iterator => { | |
| const { done, value } = iterator.next(nextValue); |
| ffmpeg -i input.mp4 -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3 -an -vf "scale=-1:1440, reverse" -preset veryslow -g 2 output.mp4 | |
| // -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3 | |
| // Encode for web with a good balance of browser compatibility and compression ratio | |
| // -an | |
| // Strip audio tracks | |
| // -vf "scale=-1:1440, reverse" | |
| // Scale video to 1440px wide, maintaining aspect ratio |