Various notes for using MKVToolNix.
mkvinfo
lists all elements contained in an MKV container file.
mkvinfo container.mkv
open http://www.google.com/?q=$(sysctl -n machdep.cpu.brand_string | awk '{FS=" " ; print $1 "+" $3 "+" $3}')+site:ark.intel.com | |
# or, on a Linux machine | |
xdg-open http://www.google.com/?q=$(fgrep 'model name' /proc/cpuinfo | head -n 1 | awk '{FS=" " ; print $5 "+" $6}')+site:ark.intel.com |
#!/usr/bin/env bash | |
#============================================================================== | |
# Install Mac OS X GUI Application via brew cask | |
#============================================================================== | |
brew cask install google-chrome | |
brew cask install thunderbird | |
brew cask install dropbox | |
brew cask install copy | |
brew cask install slack | |
brew cask install the-unarchiver |
var ALEX = ['foo', 'bar']; | |
//n00bs write: | |
if (ALEX.indexOf('foo') > -1) { | |
//ALEX contains foo | |
} | |
//pros write: | |
if (~ALEX.indexOf('foo')) { | |
//ALEX contains foo |
(function(){ | |
var _fillText, | |
__slice = [].slice; | |
_fillText = CanvasRenderingContext2D.prototype.fillText; | |
CanvasRenderingContext2D.prototype.fillText = function() { | |
var args, offset, previousLetter, str, x, y, | |
_this = this; |
fadeTo: (value, fadeLength)-> | |
fadeLength = fadeLength || @defaultfadeLength | |
currentTime = @ctx.currentTime | |
#time the fade should complete | |
fadeTime = currentTime + fadeLength | |
#set the start time | |
@masterGain.gain.setValueAtTime(@userVolume, currentTime) | |
@masterGain.gain.linearRampToValueAtTime(value, fadeTime) | |
fadeOut: (fadeLength)-> |
HTML | |
===== | |
<script type='text/javascript'> | |
window.jQuery || document.write('<script src="js/jquery-1.7.1.js">\x3C/script>') | |
</script> | |
<script src='http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.0.6/modernizr.min.js' type='text/javascript'></script> | |
<script type='text/javascript'> | |
window.Modernizr || document.write('<script src="js/modernizr-2.0.6.js">\x3C/script>') | |
</script> |
<?php | |
// Requires PHP 5.3+ | |
// Found here: http://stackoverflow.com/a/1320156 | |
function flatten_array(array $array) { | |
$flattened_array = array(); | |
array_walk_recursive($array, function($a) use (&$flattened_array) { $flattened_array[] = $a; }); | |
return $flattened_array; | |
} |