Install ffmpeg
brew install ffmpeg
Download file through url, like this:
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://url-file.domain.m3u8" -c copy video.mp4
| const isEmptyObject = obj => | |
| typeof obj === "object" && | |
| Object.keys(obj).length === 0 && | |
| obj.constructor === Object; | |
| const createProxy = msg => { | |
| if (!msg || typeof msg !== "object") { | |
| return msg; | |
| } | |
| if (Array.isArray(msg)) { |
Install ffmpeg
brew install ffmpeg
Download file through url, like this:
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://url-file.domain.m3u8" -c copy video.mp4
| { | |
| "categories": [ | |
| { | |
| "name": "Movies", | |
| "videos": [ | |
| { | |
| "description": "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
| "sources": [ | |
| "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" | |
| ], |
| // Spec http://www.ecma-international.org/ecma-262/6.0/#sec-json.stringify | |
| const replacer = (key, value) => | |
| value instanceof Object && !(value instanceof Array) ? | |
| Object.keys(value) | |
| .sort() | |
| .reduce((sorted, key) => { | |
| sorted[key] = value[key]; | |
| return sorted | |
| }, {}) : | |
| value; |
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
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| { | |
| "name": "npm-scripts-example", | |
| "version": "1.0.0", | |
| "description": "npm scripts example", | |
| "scripts": { | |
| "prebuild": "echo I run before the build script", | |
| "build": "cross-env NODE_ENV=production webpack", | |
| "postbuild": "echo I run after the build script" | |
| } | |
| } |
| #!/bin/bash | |
| # Explains how to use the script | |
| usage() | |
| { | |
| cat << EOF | |
| usage: $0 options | |
| $0 -o output_file.zip commit_from [commit_to] |