This file contains 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
# ---------------------------------------------------------------------- | |
# | Komprimierung und Caching | | |
# ---------------------------------------------------------------------- | |
# Serve resources with far-future expires headers. | |
# | |
# (!) If you don't control versioning with filename-based | |
# cache busting, you should consider lowering the cache times | |
# to something like one week. | |
# |
This file contains 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
/** | |
* Returns the scroll target position for scrolling to the top of an element. | |
* | |
* Pass the result to a scrollTo method: | |
* | |
* - $scrollContainer.scrollTop( result ) for instant scrolling | |
* - $scrollContainer.scrollTo( result ) for animated scrolling with jQuery.scrollable | |
* | |
* @param {jQuery} $target the target element | |
* @param {jQuery} $scrollContainer either $(window), or a scrollable HTML element |
This file contains 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
[ "AED" => "United Arab Emirates Dirham", | |
"AFN" => "Afghan Afghani*", | |
"ALL" => "Albanian Lek", | |
"AMD" => "Armenian Dram", | |
"ANG" => "Netherlands Antillean Gulden", | |
"AOA" => "Angolan Kwanza*", | |
"ARS" => "Argentine Peso*", | |
"AUD" => "Australian Dollar", | |
"AWG" => "Aruban Florin", | |
"AZN" => "Azerbaijani Manat", |
This file contains 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
<select name=""> | |
<option value="USD" selected="selected">United States Dollars</option> | |
<option value="EUR">Euro</option> | |
<option value="GBP">United Kingdom Pounds</option> | |
<option value="DZD">Algeria Dinars</option> | |
<option value="ARP">Argentina Pesos</option> | |
<option value="AUD">Australia Dollars</option> | |
<option value="ATS">Austria Schillings</option> | |
<option value="BSD">Bahamas Dollars</option> | |
<option value="BBD">Barbados Dollars</option> |
This file contains 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
afghanistan : Afghanistan | |
albania : Albania | |
algeria : Algeria | |
american_samoa : American Samoa | |
andorra : Andorra | |
angola : Angola | |
anguilla : Anguilla | |
antigua_and_barbuda : Antigua and Barbuda | |
argentina : Argentina | |
armenia : Armenia |
This file contains 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
/** | |
* Convert data-options attribute into an object of key/value pairs | |
* @private | |
* @param {String} options Item-specific options as a data attribute string | |
* @returns {Object} | |
*/ | |
var getDataOptions = function ( options ) { | |
var settings = {}; | |
// Trim whitespace from a string |
This file contains 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
/* | |
This is a customised version of picturefill.js with the following modifications | |
1. Before setting the source on the img tag to the appropriate img file, check if the lazyload plugin is defined | |
2. If so, set the data-original attr of the img instead of the src attr. Also set width and height attrs from the picture span's data-width and data-height attrs. | |
3. Append the img tag and tell lazyload about it |
This file contains 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
// NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension | |
{ | |
// Settings | |
"passfail" : false, // Stop on first error. | |
"maxerr" : 100, // Maximum error before stopping. | |
// Predefined globals whom JSHint will ignore. | |
"browser" : true, // Standard browser globals e.g. `window`, `document`. |
This file contains 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
Drop in replace functions for setTimeout() & setInterval() that | |
make use of requestAnimationFrame() for performance where available | |
http://www.joelambert.co.uk | |
Copyright 2011, Joe Lambert. | |
Free to use under the MIT license. | |
http://www.opensource.org/licenses/mit-license.php |
NewerOlder