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
{ | |
"directory": "AppName/bower_components" | |
} |
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
var bar = { | |
'a': {}, | |
'c': {}, | |
'b': {} | |
}; |
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
import scss | |
scss.LOAD_PATHS = [ | |
'/static/scss/', | |
'/static/scss/foundation/' | |
] | |
scss.ASSETS_ROOT = os.path.join('static/css/') | |
_scss = scss.Scss( | |
scss_vars={}, |
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
{ | |
"caption": "Preview", | |
"id": "side-bar-files-open-with-preview", | |
"command": "side_bar_files_open_with", | |
"args": { | |
"paths": [], | |
"application": "Preview.app", // OSX | |
"extensions":"pdf|png|jpg|jpeg" //any file with these extensions | |
} |
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
var platforms = [ | |
{ category: 'windows', tokens: /(Windows)/i }, | |
{ category: 'mac', tokens: /(Macintosh)/i }, | |
{ category: 'iOS', tokens: /(iPad|iPhone|iPod)/i }, | |
{ category: 'android', tokens: /(Android)/i }, | |
{ category: 'silk', tokens: /(Silk)/i }, | |
{ category: 'winmobile', tokens: /(Windows Phone OS|Zune)/i }, | |
// Linux is tricky because Anroid reports itself as Linux. | |
// If you are using is.linux to detect desktop linux make sure you also check !is.android |
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
property HANDBRAKE_CLI : "HandBrakeCLI" | |
property HANDBRAKE_PARAMETERS : " -f mp4 --preset=\"AppleTV 2\" " | |
property TARGET_PATH : "/Shared Media/TV Shows/" | |
property TARGET_TYPE : ".mp4" | |
property SOURCE_TYPE : ".mpg" | |
property SHELL_SCRIPT_SUFFIX : " > /Shared\\ Media/TV\\ Shows/EyeTV\\ Archive/HandBrakeCLI-export.log 2>&1 " | |
-- Properties for clean_filename() routine: | |
-- Set the list of characters you want to replace |
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
<form class="form-horizontal"> | |
<div class="control-group"> | |
<label class="control-label">Multiple Select</label> | |
<div class="controls"> | |
<select data-select="multiple" multiple="multiple"> | |
<option>blah</option> | |
<option>poop</option> | |
<option>blah</option> | |
<option>poop</option> | |
<option>blah</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
/** | |
* Use Modernizr to test if changing input.type is allowed in x browser. | |
* Based on supportsChangingTypeAttribute from http://lea.verou.me/2009/06/on-password-masking-and-usability/ | |
*/ | |
Modernizr.addTest('changeinputtype', function () { | |
var input = document.createElement('input'); | |
try { | |
input.type = 'password'; | |
input.type = 'text'; | |
} catch (e) { |
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
// an example of such object could be | |
browser.info = { | |
name : "Chrome | Internet Explorer | firefox | Opera | etc...", | |
mobile : true | false, | |
version : 19.0.1084.46 | |
} |
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
/** | |
* jQuery eventsTrigger plugin | |
* because jquery supports $(element).on('eventA eventB eventC',func) and $(element).off('eventA eventB eventC') | |
* but does not support $(element).trigger('eventA eventB eventC') | |
* this allows you to pass multiple events to be triggered in order | |
* | |
* @param {String|Array} Space-separated string or array of events in order of execution. | |
*/ | |
(function (root, factory) { |