I hereby claim:
- I am ozthekoder on github.
- I am thekoder (https://keybase.io/thekoder) on keybase.
- I have a public key whose fingerprint is E5C8 E22B 11DC 9B5C 0158 062D 60E5 FD13 8288 99C8
To claim this, I am signing this object:
set nocompatible " be iMproved, required | |
call plug#begin('~/.vim/plugged') | |
Plug 'christoomey/vim-tmux-navigator' | |
Plug 'preservim/nerdtree' " NerdTree | |
Plug 'Xuyuanp/nerdtree-git-plugin' " NerdTree git | |
" Plug 'ryanoasis/vim-devicons' " File type icons in NerdTree |
// A node.js snippet to stream media files to a Chromecast device. | |
// An ac3 or dts audio stream in matroska containers is transcoded to mp3 | |
// using ffmeg. Seeking using left and right keys won't be available. | |
var Client = require('castv2-client').Client; | |
var DefaultMediaReceiver = require('castv2-client').DefaultMediaReceiver; | |
var mdns = require('mdns'); |
See my DASH-IF presentation from October, 2014: | |
https://s3.amazonaws.com/misc.meltymedia/dash-if-reveal/index.html#/ | |
1. encode multiple bitrates with keyframe alignment: | |
ffmpeg -i ~/Movies/5D2_Portrait.MOV -s 1280x720 -c:v libx264 -b:v 1450k -bf 2 \ | |
-g 90 -sc_threshold 0 -c:a aac -strict experimental -b:a 96k -ar 32000 out.mp4 | |
My input was 30 fps = 3000 ms. If it were 29.97, then a GOP size of 90 frames will yield a base segment | |
size of 3003 milliseconds. You can make the segment size some multiple of this, e.g.: 6006, 9009, 12012. |
lts/carbon |
{ | |
"printWidth": 80, | |
"singleQuote": true, | |
"trailingComma": "es5", | |
"bracketSpacing": true | |
} |
VIDEO_FILE_EXTENSIONS = ['.264', | |
'.3g2', | |
'.3gp', | |
'.3gp2', | |
'.3gpp', | |
'.3gpp2', | |
'.3mm', | |
'.3p2', | |
'.60d', | |
'.787', |
# global config | |
set -g prefix C-x # change prefix key | |
unbind C-b | |
set -g history-limit 10000 | |
set -sg escape-time 0 | |
set -g mouse on | |
setw -g mode-keys vi | |
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy' |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Converts an RGB color value to HSL. Conversion formula | |
* adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
* Assumes r, g, and b are contained in the set [0, 255] and | |
* returns h, s, and l in the set [0, 1]. | |
* | |
* @param Number r The red color value | |
* @param Number g The green color value | |
* @param Number b The blue color value | |
* @return Array The HSL representation |
{ | |
"palette": { | |
"canvasColor": "#5d4037", | |
"primary1Color": "#ffb300", | |
"primary2Color": "#ffb300", | |
"primary3Color": "#ff7043", | |
"accent1Color": "#f57f17", | |
"accent2Color": "#4e342e", | |
"accent3Color": "#ffa000", | |
"textColor": "#ffee58", |