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
// snippet requires jquery. | |
function equalHeight(group) { | |
tallest = 0; | |
// loop through and find the tallest div in a group. | |
group.each(function() { | |
thisHeight = jQuery(this).height(); | |
if(thisHeight > tallest) { | |
tallest = thisHeight; | |
} |
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
#!/bin/sh | |
DAY=`/bin/date +%Y%m%d` | |
mysqldump -h localhost -u root -p<password> --all-databases > /home/administrator/mysqlbackups/mysql.yourdomain.$DAY.sql |
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 disableEnterKey(e) | |
{ | |
var key; | |
if(window.event) | |
key = window.event.keyCode; //IE | |
else | |
key = e.which; //firefox | |
return (key != 13); | |
} | |
//Filter for the table. You feed it the object and the ID to get it to respond. |
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
// written in plain javascript and can be called using the inline html js events, | |
// or by using selectors of your favorite javascript library. | |
function disableEnterKey(e) | |
{ | |
var key; | |
if(window.event) | |
key = window.event.keyCode; //IE | |
else | |
key = e.which; //firefox |
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
RewriteEngine on | |
RewriteBase / | |
Options -Indexes | |
# disallow access to special directories and feed back a 404 error | |
RedirectMatch 404 /\\.svn(/|$) | |
RedirectMatch 404 /\\.git(/|$) | |
# set headers that will override server defaults. | |
#Header set X-UA-Compatible "IE=9" |
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
<cfscript> | |
zipcode = isDefined("form.q")?form.q:url.q; | |
zipcode = trim(zipcode); | |
path="#expandpath('.')#\weatherData\zip-#zipcode#.txt"; | |
smlImgPath="#expandpath('.')#\weatherData\images\small\"; | |
lrgImgPath="#expandpath('.')#\weatherData\images\large\"; | |
// check the ages and existance of the current cached weather file. | |
if (fileExists(path)){ | |
info = GetFileInfo(path); | |
if (dateDiff("n", info.lastmodified, now()) >= 60){ |
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
<!---Start Function to look through arguments and replace special variables with Road Map variables. ---> | |
<cffunction name="fillInTemplate" access="public" returntype="string" output="false"> | |
<cfargument name="map" type="struct" required="true" /> | |
<cfargument name="template" type="string" required="true" /> | |
<cfset var str = arguments.template /> | |
<cfset var k = "" /> | |
<cfloop list="#StructKeyList(arguments.map)#" index="k"> |
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
var hasFlash = false; | |
try { | |
var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); | |
if(fo) hasFlash = true; | |
}catch(e){ | |
if(navigator.mimeTypes ["application/x-shockwave-flash"] != undefined) hasFlash = true; | |
} |
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
^$|EasouSpider|Add Catalog|PaperLiBot|Spiceworks|ZumBot|RU_Bot|Wget|Java/1.7.0_25|Slurp|FunWebProducts|80legs|Aboundex|AcoiRobot|Acoon Robot|AhrefsBot|aihit|AlkalineBOT|AnzwersCrawl|Arachnoidea|ArchitextSpider|archive|Autonomy Spider|Baiduspider|BecomeBot|benderthewebrobot|BlackWidow|Bork-edition|Bot mailto:craftbot@yahoo.com|botje|catchbot|changedetection|Charlotte|ChinaClaw|commoncrawl|ConveraCrawler|Covario|crawler|curl|Custo|data mining development project|DigExt|DISCo|discobot|discoveryengine|DOC|DoCoMo|DotBot|Download Demon|Download Ninja|eCatch|EirGrabber|EmailSiphon|EmailWolf|eurobot|Exabot|Express WebPictures|ExtractorPro|EyeNetIE|Ezooms|Fetch|Fetch API|filterdb|findfiles|findlinks|FlashGet|flightdeckreports|FollowSite Bot|Gaisbot|genieBot|GetRight|GetWeb!|gigablast|Gigabot|Go-Ahead-Got-It|Go!Zilla|GrabNet|Grafula|GT::WWW|hailoo|heritrix|HMView|houxou|HTTP::Lite|HTTrack|ia_archiver|IBM EVV|id-search|IDBot|Image Stripper|Image Sucker|Indy Library|InterGET|Internet Ninja|internetmemory|ISC Systems iRc |
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
require 'rubygems' | |
require 'json' | |
require 'httpclient' | |
start = "http://letsrevolutionizetesting.com/challenge?format=json" | |
def go_to_url url | |
client = HTTPClient.new | |
httpresult = client.get_content(url) | |
JSON.parse(httpresult) | |
end |
OlderNewer