This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
// $.widget-lite | |
$.plugin = function(name, base, prototype) { | |
if (!prototype) { | |
prototype = base; | |
base = function(options, element) { | |
if (arguments.length) { | |
$.data(element, name, this); | |
this.element = $(element); | |
this._init(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Fixes binding the "change" event to checkboxes and select[type=multiple] | |
* for Internet Explorer. | |
* | |
* @param {jQuery|Element|Element[]} elements | |
* The DOM Element we wish to bind the event to. | |
* | |
* @param {String} eventType | |
* The name of the event we want to bind to. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function( jQuery ) { | |
jQuery.extend({ | |
attached: function( elem ) { | |
if ( elem instanceof jQuery ) { | |
elem = elem[ 0 ]; | |
} | |
return jQuery.contains( elem.ownerDocument.documentElement, elem ); | |
}, | |
detached: function( elem ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function( jQuery ) { | |
// Determines if we can treat an object like an array. | |
var isArrayLike = function( obj ) { | |
var length; | |
// Supports arrays, jQuery objects, nodeLists and HTMLCollections | |
// Should also support function arguments, but there is no cross-browser way... | |
return obj && ( obj instanceof jQuery || ( typeof obj === "object" && | |
!jQuery.isWindow( obj ) && ( typeof ( length = obj.length ) === "number" && | |
( obj.item && ( obj.namedItem || jQuery.isFunction( obj.item ) ) ) ) || jQuery.isArray( obj ) ) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var isArguments = (function( undefined ) { | |
var toString = Object.prototype.toString, | |
returnTrue = function() { | |
return arguments !== undefined; | |
}; | |
return function( obj ) { | |
if ( obj != null ) { | |
if ( toString.call( obj ) == "[object Arguments]" ) { | |
return true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://frozenfox.freehostia.com/cappy/getlibs-all.deb | |
sudo dpkg -i getlibs-all.deb | |
wget http://amazonm-002.vo.llnwd.net/u/d1/clients/en_US/1.0.9/amazonmp3_1.0.9~ibex_i386.deb | |
sudo getlibs -w http://old-releases.ubuntu.com/ubuntu/pool/main/b/boost/libboost-filesystem1.34.1_1.34.1-11ubuntu1_i386.deb http://old-releases.ubuntu.com/ubuntu/pool/main/b/boost/libboost-regex1.34.1_1.34.1-11ubuntu1_i386.deb http://old-releases.ubuntu.com/ubuntu/pool/main/b/boost/libboost-date-time1.34.1_1.34.1-11ubuntu1_i386.deb http://old-releases.ubuntu.com/ubuntu/pool/main/b/boost/libboost-signals1.34.1_1.34.1-11ubuntu1_i386.deb http://old-releases.ubuntu.com/ubuntu/pool/main/b/boost/libboost-iostreams1.34.1_1.34.1-11ubuntu1_i386.deb http://old-releases.ubuntu.com/ubuntu/pool/main/b/boost/libboost-thread1.34.1_1.34.1-11ubuntu1_i386.deb http://old-releases.ubuntu.com/ubuntu/pool/main/i/icu/libicu38_3.8.1-2ubuntu0.2_i386.deb | |
sudo dpkg -i --force-all amazonmp3.deb | |
sudo getlibs /usr/bin/amazonmp3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Modified version of Steven Levithan's parseUri 1.2.2 | |
// See: http://blog.stevenlevithan.com/archives/parseuri | |
function parseUri( uri ) { | |
var uriRegex = new RegExp( | |
// Protocol | |
"^(?:(?![^:@]+:[^:@/]*@)([^:/?#.]+):)?(?://)?" + | |
// Authority | |
"(" + | |
// Credentials | |
"(?:(" + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Opacity should be on a 100 point scale (0-100 instead of 0.0-1.0) | |
// This should be used to supplement a normal border definition as it | |
// only deals with the 'border-color' property. | |
@mixin border-opacity($color, $opacity) { | |
$opacity: $opacity / 100; | |
// Unsupporting browsers get this | |
border-color: $color; | |
// Browsers that support RGBA will get this instead |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
HTML: <img class="arrow" src="<?= $wg->BlankImgUrl ?>" /> | |
SASS: .arrow { @include arrow(); } | |
*/ | |
@mixin arrow($width: 4px, $color: black, $direction: 'down') { | |
border-color: transparent; | |
// Fixes the 'jagged line' problem for modern browsers | |
// See: http://css-tricks.com/snippets/css/css-triangle/#comment-108252 | |
border-color: rgba($color, 0); |
OlderNewer