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
<!-- BEGIN FIX --> | |
<?php if(strpos($_SERVER['HTTP_USER_AGENT'],'Googlebot')!==false){if(!function_exists('fixNoindex')){ | |
function fixNoindex($buffer){return preg_replace('#<noindex>(.*?)</noindex>#msi','<!-- $1 -->',$buffer);}}ob_start('fixNoindex');} ?> | |
<!-- END FIX --> | |
<!-- THIS IS EXAMPLE --> | |
<!-- DON'T COPY IT TO YOUR SITE --> | |
Indexable, visible. | |
<noindex> | |
Non-indexable, but still visible. |
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
// from https://github.com/thinkphp/String.levenshtein/blob/master/Source/String.levenshtein.js but no depencencies | |
function levenshtein(str1, str2) { | |
var cost = new Array(), | |
n = str1.length, | |
m = str2.length, | |
i, j; | |
var minimum = function(a, b, c) { | |
var min = a; | |
if (b < min) { |
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
/** | |
* Fastest jQuery.fn.find | |
* @jsperf http://jsperf.com/jquery-find-vs-jquery-fastestfind | |
* @author RubaXa <[email protected]> | |
* @license MIT | |
*/ | |
/* global document, jQuery */ | |
document.createElement('div').querySelectorAll && (function ($, originalFind){ |