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
$('a[href^="http://"]').attr('target', '_blank'); |
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').filter(function() { | |
return this.innerHTML.match(/^\d+$/); | |
}); |
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 an option based on index: | |
$('#selectBox option')[index].attr('selected', 'selected'); | |
// Select an option based on value: | |
$('#selectBox option[value=value]').attr('selected', 'selected'); |
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
/* | |
* Test whether argument elements are parents of the first matched element | |
* @return boolean | |
* @param objs | |
* a jQuery selector, selection, element, or array of elements | |
*/ | |
$.fn.hasParent = function(objs) { | |
// ensure that objs is a jQuery array | |
objs = $(objs); var found = false; | |
$(this[0]).parents().andSelf().each(function() { |
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: ~/.ssh/environment should not be used, as it | |
# already has a different purpose in SSH. | |
env=~/.ssh/agent.env | |
# Note: Don't bother checking SSH_AGENT_PID. It's not used | |
# by SSH itself, and it might even be incorrect | |
# (for example, when using agent-forwarding over SSH). | |
agent_is_running() { |
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
[color] | |
ui = auto | |
[push] | |
default = simple | |
[mergetool "sublime"] | |
cmd = subl -w $MERGED | |
trustExitCode = false | |
[merge] | |
tool = sublime | |
[core] |
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
{ | |
"binary_file_patterns": | |
[ | |
"humans.txt", | |
"robots.txt", | |
"*jquery*.js", | |
"*.min.js" | |
], | |
"caret_style": "blink", | |
"color_scheme": "Packages/User/Tomorrow-Night (SL).tmTheme", |
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
*.sublime-* | |
!.gitkeep | |
bin | |
dist | |
logs/* | |
node_modules/ | |
tmp | |
.DS_Store | |
.idea | |
.sass-cache |
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
<!-- inline SVG with inline fallback --> | |
<object data="image.svg" type="image/svg+xml"> | |
<img src="image.png" /> | |
</object> | |
<!-- inline SVG with CSS fallback using Modernizr --> | |
<object data="image.svg" type="image/svg+xml" class="svg"> | |
SVG Image <!-- CSS fallback image --> | |
</object> |
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
@media only screen and (min-width: 767px) { | |
::-webkit-scrollbar { | |
width: 12px; | |
height: 12px; | |
background-color: $xxLightGrey; | |
} | |
::-webkit-scrollbar-thumb { | |
background-color: $darkBlue; | |
-webkit-border-radius: 5px; | |
} |
NewerOlder