- Download video@1080p without audio
- Download audio@256k without video
- Merge video and audio with ffmpeg
- if 1080p video is not exists then select video quality automatically
Install and Usage:
| toRgb = (hex) -> | |
| result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex) | |
| if result | |
| [ | |
| parseInt(result[1], 16) | |
| parseInt(result[2], 16) | |
| parseInt(result[3], 16) | |
| ] | |
| else |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> | |
| var mix, rgb, shade, tint; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> | |
| var rgb = [255, 10, 10] |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> | |
| var a, b, padItems; |
| brew update | |
| brew upgrade | |
| brew tap phinze/cask | |
| brew tap homebrew/versions | |
| brew tap phinze/homebrew-cask | |
| brew tap homebrew/binary | |
| # | |
| # termcolor.pl : http://h2plus.biz/hiromitsu/entry/674 | |
| # | |
| # Usage: | |
| # > coffee termcolor.coffee | |
| # | |
| sys = require "sys" | |
| fg = "\x1b[38;5;" | |
| bg = "\x1b[48;5;" | |
| rs = "\x1b[0m" |
| form { | |
| -webkit-transform: translate3d(0px, 0px, 0px); | |
| } |
| display alert "タップでクリックを設定" message "" buttons {"Cancel", "タップクリックOFF", "タップクリックON"} cancel button 1 | |
| if (button returned of result) is "タップクリックON" then | |
| set theValue to 1 | |
| else | |
| set theValue to 0 | |
| end if | |
| -- open trackpad preferences | |
| tell application "System Preferences" |