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
/** | |
* Tests if a property has a vendor prefix and returns the properly | |
* property. | |
* | |
* @param {string} prop - Property to test | |
* @param {string} propGroup - Group where the test property is located | |
* @returns {*} If the property was found, it will be returned. Otherwise false | |
* @private | |
*/ | |
var _getVendorPrefix = function(prop, propGroup) { |
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
#!/bin/bash | |
if [ ! -r "/usr/local/git" ]; then | |
echo "Git doesn't appear to be installed via this installer. Aborting" | |
exit 1 | |
fi | |
echo "This will uninstall git by removing /usr/local/git/**/*, /etc/paths.d/git, /etc/manpaths.d/git" | |
printf "Type 'yes' if you sure you wish to continue: " | |
read response | |
if [ "$response" == "yes" ]; then | |
sudo rm -rf /usr/local/git/ |
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
.is-truncate { | |
width: 250px; /** Adjust width to your needs */ | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} |
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 ( $, window, document, undefined ) { | |
"use strict"; | |
var pluginName = 'timer', | |
defaults = { | |
'baseCls': 'timer', | |
'separator': ' ', | |
'date': new Date("6 7, 2013 10:0:0") | |
}; | |
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
git clone https://github.com/Anomareh/PHP-Twig.tmbundle.git && mkdir ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Twig/ && mv PHP-Twig.tmbundle* ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Twig/ |
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 ( $, window, document, undefined ) { | |
"use strict"; | |
var pluginName = 'starRating', _lastActive = -1, | |
defaults = { | |
baseCls: 'star-rating', | |
activeCls: 'is-active', | |
hoverCls: 'is-hover', | |
nonInteractiveCls: 'is-non-interactive' | |
}; |
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
/** | |
* Formats a string and replaces the placeholders. | |
* | |
* @example format('<div class="%0"'>%1</div>, [value for %0], [value for %1], ...) | |
* | |
* @param {String} str | |
* @param {Mixed} | |
* @returns {String} | |
*/ | |
var format = function (str) { |
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
/** | |
* Private helper method which parses an hex string to a rgb. | |
* | |
* @param hexStr | |
* @returns {Array} | |
*/ | |
var hex2rgb = function(hexStr) { | |
var hex = parseInt(hexStr.substring(1), 16), | |
r = (hex & 0xff0000) >> 16, | |
g = (hex & 0x00ff00) >> 8, |
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($) { | |
/** | |
* Formats a given number (or number as a string) | |
* | |
* @param {Number|String} num | |
* @param {Object} [userOpts] User configuration | |
* @returns {String|Boolean} | |
*/ | |
var formatNumber = function(num, userOpts) { | |
var defaults = { |
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($) { | |
var flashingDots = function(el) { | |
var dots = el.data('default-value') || el.html(), | |
i = 0; | |
if(!el.data('default-value')) { | |
el.data('default-value', el.html()); | |
} | |
return { | |
el: el, |
OlderNewer