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
/** | |
* Converts a string to a "URL-safe" slug. | |
* Allows for some customization with two optional parameters: | |
* | |
* @param {string} Delimiter used. If not specified, defaults to a dash "-" | |
* @param {array} Adds to the list of non-alphanumeric characters which | |
* will be converted to the delimiter. The default list includes: | |
* ['–', '—', '―', '~', '\\', '/', '|', '+', '\'', '‘', '’', ' '] | |
*/ | |
if (!String.prototype.slugify) { |
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 theIP to do shell script "ifconfig | grep 'broadcast' | awk '{print $2}'" | |
try | |
set ip1 to first paragraph of theIP | |
on error | |
set ip1 to "" | |
end try | |
if ip1 contains "192.168.1" then | |
-- Location 1 |
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 | |
function mn_modify_bloginfo($content, $feedelementname) { | |
Switch ($feedelementname) { | |
case 'name' : // Feed title | |
return "NEW_TITLE"; | |
break; | |
default : | |
return $content; |
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 | |
/* | |
Usage: [sel engine=ddg|bing|google]word1 word2 ...[/sel] | |
"ddg": DuckDuckGo | |
"bing": Bing | |
"google": Google | |
"": Site Search (Default) |