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 sublime | |
import sublime_plugin | |
import string | |
class MultiSelectNumbersCommand( sublime_plugin.TextCommand ): | |
def run(self, edit): | |
view = self.view; | |
window = view.window() | |
def countThoseSelections(pattern): |
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
<string>(?:^\s+)?(<)((?i:script))\b(?![^>]*/>)</string> | |
=> | |
<string>(?:^\s+)?(<)((?i:script))\b(?!([^>]*text/template[^>]*|[^>]*/>))</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
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json | |
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript | |
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component | |
<FilesMatch "\.(ttf|otf|eot|svg)$" > | |
SetOutputFilter DEFLATE | |
</FilesMatch> | |
</IfModule> |
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
/* | |
<div class="css-loading-indicator"> | |
<div class="step-1"></div> | |
<div class="step-2"></div> | |
<div class="step-3"></div> | |
<div class="step-4"></div> | |
</div> | |
demo: | |
http://codepen.io/iamntz/pen/cizwG | |
Don't use SASS? Compile this gist here: http://sass-lang.com/try.html |
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
slowScrollHorizontalInterval: function(node, slideNodes, newOffset, scrollbarClass, scrollbarWidth, stageWidth, scrollbarStageWidth, scrollMargin, scrollBorder, activeChildOffset, originalOffsets, childrenOffsets, infiniteSliderWidth, numberOfSlides, sliderNumber, centeredSlideOffset, endOffset, settings) { |
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
$('.typeahead').typeahead({ | |
}); | |
var groupFocusTimer; | |
$('.group').on('change', function (e) { | |
if (e.target.value == "") { | |
return; | |
} |
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
$('.typeahead').typeahead({ | |
}); | |
$('.group').on('change', function (e) { | |
if (e.target.value == "") { | |
return; | |
} |
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
$('#myElement').live('webkitAnimationEnd webkitAnimationStart keyframe', function(e){ | |
switch( e.type ){ | |
case 'webkitAnimationEnd': | |
// end event | |
break; | |
case 'webkitAnimationStart': | |
// start event | |
break; | |
case 'keyframe': | |
// trigger event |
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
(function($, window, document){ | |
function createEvent( element, animationKey ) { | |
var event = document.createEvent("Event"); | |
event.initEvent("keyframe", true, true); | |
event.animationName = 'keyframe'; | |
event.keyText = 'keyframe'; | |
event.percent = animationKey; | |
element.dispatchEvent(event); | |
}; |
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
<?php | |
$input_attr = array( | |
"class" => "foo bar", | |
"id" => "input_id", | |
"disabled" => "disabled", | |
"readonly" => "readonly" | |
); |