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!
Also see this SO answer.
Table of Contents
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!
Also see this SO answer.
Table of Contents
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| object Algebra { | |
| // Build up increasingly complex algebras | |
| trait Magma[T] { | |
| def add(x : T, y : T) : T | |
| } | |
| trait Monoid[T] extends Magma[T] { | |
| def zero : T | |
| } |
| <?php | |
| class Extract { | |
| const FFMPEG_PATH = '/usr/bin/ffmpeg'; | |
| public function exec($psSource, $psDest) { | |
| $aOutput = []; | |
| $aError = null; | |
| $sCommand = sprintf("%s -i %s -vframes 1 %s 2>&1", self::FFMPEG_PATH, $psSource, $psDest); | |
| echo 'Executing: ' . $sCommand; |
| <?php | |
| /** | |
| * Format an amount of bytes using a SI metric conversion | |
| * | |
| * Note: 1024 to express the format in KiB, MiB | |
| * | |
| * @author Alfredo Torre <[email protected]> | |
| * @see https://en.wikipedia.org/wiki/Kibibyte | |
| * @param string/int $pBytes | |
| * @param int $piPrecision |
# From the official ffmpeg docs
sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev \
libsdl1.2-dev libtheora-dev libtool libvorbis-dev pkg-config texinfo zlib1g-dev \
yasm libx264-dev libmp3lame-dev libvpx-dev libfdk-aac-dev| SELECT | |
| SUBSTRING_INDEX(number, '.', 1) AS FIRST_INT, | |
| SUBSTRING_INDEX(SUBSTRING_INDEX(number, '.', 2), '.', -1) AS SECOND_INT, | |
| SUBSTRING_INDEX(number, '.', -1) AS THIRD_INT, | |
| number as VERSION, | |
| description as TITLE | |
| FROM _version | |
| ORDER BY | |
| LENGTH(SUBSTRING_INDEX(number, '.', 1)) DESC, | |
| SUBSTRING_INDEX(number, '.', 1) DESC, |