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 | |
/** | |
* Fuzzy Search Suggestion Snippet for i18n_search plug-in for the GetSimple CMS | |
* | |
* Sometimes a search query produces no matches. This is occassionaly due to a | |
* miss-spelling in the query terms. This routine will attempt to offer a search | |
* suggestion to the user when a search results in no matches. | |
* | |
* For example: |
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 ($) { | |
$.fn.ticker = function (options) { | |
var defaults = { | |
speed: 1000, | |
pause: 3000, | |
p: false | |
}; | |
options = $.extend(defaults, options); |
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
if (document.getElementById('countdownTimer')) { | |
pad = function(n, len) { // leading 0's | |
var s = n.toString(); | |
return (new Array( (len - s.length + 1) ).join('0')) + s; | |
}; | |
var timerRunning = setInterval( | |
function countDown() { | |
var now = new Date(); | |
if ( (now.getDay() >= 1) && (now.getDay() <= 5) ) { // Monday to Friday only |
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
// Requires the jQuery library - http://jquery.com/ | |
// Demo: http://jsfiddle.net/DarkBlue/zM3A2/3/embedded/result/ | |
function slideshow(){var a=$("#animation img.active");a.length==0&&(a=$("#animation img:last"));var b=a.next().length?a.next():$("#animation img:first");a.addClass("last-active");b.css({opacity:0}).addClass("active").animate({opacity:1},1E3,function(){a.removeClass("active last-active")})}$(function(){setInterval("slideshow()",5E3)}); |
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
perl -e 'foreach $file (glob "*") { $dest_file = $file; $dest_file =~ s/ /_/sg; $dest_file =~ s/[^a-zA-Z_\-.0-9]//sg; rename $file, lc($dest_file) }' |
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 | |
/** | |
* Page delivery wrapper for servers where mod_expires and/or mod_deflate are | |
* not available. | |
* | |
* Route page requests through this wrapper (via mod_rewrite for example) and | |
* they will be served with far future expires, etags and will be gzip | |
* compressed. | |
* |
NewerOlder