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
if typeof Number::mod isnt 'function' | |
Number::mod = (n) -> | |
( ( @ % n ) + n ) % n |
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 array_reorder( $array, $index_from, $index_to ) { | |
array_splice( | |
$array, | |
$index_to, | |
count( $array ), | |
array_merge( | |
array_splice( $array, $index_from, 1 ), | |
array_slice( $array, $index_to, count( $array ) ) | |
) | |
); |
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
###* | |
* String prototype to check the presence of a substring | |
* @param {String} needle to look for | |
* @return {Bool} Presence of needle in String | |
### | |
if typeof String::contains isnt 'function' | |
String::contains = (needle) -> | |
(@.match new RegExp needle.replace(/[-[\](){}*+?.,\\^$|#\s]/g, "\\$&"))? |
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-languageTier3 .graf--h3 { | |
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif | |
} | |
.is-languageTier3 .postContent { | |
font-family: Georgia, Cambria, "Times New Roman", Times, serif | |
} |
NewerOlder