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
set SUBSONIC_HOME=d:\subsonic |
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
$(selector).keydown(function(event) { | |
// Allow: backspace, delete, tab, escape, and enter | |
if ( event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 27 || event.keyCode == 13 || | |
// Allow: Ctrl+A | |
(event.keyCode == 65 && event.ctrlKey === true) || | |
// Allow: home, end, left, right | |
(event.keyCode >= 35 && event.keyCode <= 39)) { | |
// let it happen, don't do anything | |
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
ol { counter-reset: item } | |
li { display: block } | |
li:before { content: counters(item, ".") ". "; counter-increment: item } |
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 declination(a, b, c, s) { | |
var words = [a, b, c]; | |
var index = s % 100; | |
if (index >=11 && index <= 14) { index = 0; } | |
else { index = (index %= 10) < 5 ? (index > 2 ? 2 : index): 0; } | |
return(words[index]); | |
} |
NewerOlder