Various notes for using MKVToolNix.
mkvinfo
lists all elements contained in an MKV container file.
mkvinfo container.mkv
// Example 1 | |
mediator.name = 'Doug'; | |
mediator.subscribe('nameChange', function(arg){ | |
console.log(this.name); | |
this.name = arg; | |
console.log(this.name); | |
}); | |
mediator.publish('nameChange', 'Jorn'); |
// Creating sound waves with JavaScript | |
// from http://js.do/blog/sound-waves-with-javascript/ | |
var samples = [] | |
// | |
// | |
// | |
// Achord |
.gradient-animation( @start, @end, @transTime ){ | |
background-size: 100%; | |
background-image: linear-gradient(@start, @end); | |
position: relative; | |
z-index: 100; | |
&:before { | |
background-image: linear-gradient(@end, @start); | |
content: ''; | |
display: block; | |
height: 100%; |
bootstrap-tooltip.js | |
bootstrap-popover.js | |
bootstrap-alert.js | |
bootstrap-button.js | |
bootstrap-carousel.js | |
bootstrap-collapse.js | |
bootstrap-dropdown.js | |
bootstrap-modal.js | |
bootstrap-scrollspy.js | |
bootstrap-tab.js |
function getStyle(el, styleProp) { | |
var value, defaultView = el.ownerDocument.defaultView; | |
// W3C standard way: | |
if (defaultView && defaultView.getComputedStyle) { | |
// sanitize property name to css notation (hypen separated words eg. font-Size) | |
styleProp = styleProp.replace(/([A-Z])/g, "-$1").toLowerCase(); | |
return defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); | |
} else if (el.currentStyle) { // IE | |
// sanitize property name to camelCase | |
styleProp = styleProp.replace(/\-(\w)/g, function(str, letter) { |
open http://www.google.com/?q=$(sysctl -n machdep.cpu.brand_string | awk '{FS=" " ; print $2 "+" $3 "+" $4}')+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 |
function slugify(text) { | |
return text.toString().toLowerCase().trim() | |
.normalize('NFD') // separate accent from letter | |
.replace(/[\u0300-\u036f]/g, '') // remove all separated accents | |
.replace(/\s+/g, '-') // replace spaces with - | |
.replace(/&/g, '-and-') // replace & with 'and' | |
.replace(/[^\w\-]+/g, '') // remove all non-word chars | |
.replace(/--+/g, '-') // replace multiple '-' with single '-' | |
} |
SQL: | |
images int(11) unsigned DEFAULT '0', | |
======================================================= | |
TCA | |
.... | |
'images' => array( | |
'exclude' => 0, | |
'label' => 'images', | |
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( | |
'images', |