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
a {-webkit-transition-duration: .33s; -webkit-transition-property: color, background;} |
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
javascript:void(function(){var link=document.getElementsByTagName("link");for(var i=0,len=link.length;i<len;i++){var l=link[i];if(l&&((l.href.indexOf(".css")>-1||l.rel=="stylesheet"))){l.parentNode.removeChild(l)}}var style=document.getElementsByTagName("style");for(var i=0,len=style.length;i<len;i++){var s=style[i];if(s){s.parentNode.removeChild(s)}}var iecss=document.createElement("link");iecss.setAttribute("rel","stylesheet");iecss.setAttribute("href","http://forabeautifulweb.com/demo/2009/05/21/ie6.0.2.css");document.getElementsByTagName("head")[0].appendChild(iecss);}()); |
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
Loop { | |
app = msnmsgr.exe | |
; Live Messenger on my machine is having memory leaks, hence this script :) | |
mem := GetProcessMemoryInfo(app) | |
Menu, tray, tip, %app% %mem% KB | |
if mem > 80000 | |
{ | |
Process, close, %app% | |
TrayTip, %app% closed, %mem% KB used. | |
} |
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
var evalJSON = function(string){ | |
return (window.JSON && JSON.parse) ? JSON.parse(string) : eval('(' + string + ')'); | |
}; |
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
/* | |
* Idea from http://james.padolsey.com/javascript/stringprototypeextract/ | |
*/ | |
String.implement({ | |
extract: function(regex, n){ | |
n = (n===undefined) ? 0 : n; | |
if (!regex.global) return this.match(regex)[n] || ''; | |
var match, extracted = []; |
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
/* | |
* Luhn algorithm number checker - (c) 2005-2008 shaman - www.planzero.org | |
* Ported to Mootools by Chee Aun - http://cheeaun.com/ | |
* http://planzero.org/code/bits/viewcode.php?src=luhn_check.js | |
* http://en.wikipedia.org/wiki/Luhn_algorithm | |
*/ | |
String.implement({ | |
isValidLuhn: function(){ |
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
Browser.Engines.trident = function(){ | |
return (!window.ActiveXObject) ? false : ((window.XMLHttpRequest) ? ((Browser.Features.query) ? 6 : 5) : 4); | |
} |
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(){ | |
Element.implement({ | |
getOffsets: function(){ | |
if (Browser.Engine.trident){ | |
var bound = this.getBoundingClientRect(), html = this.getDocument().documentElement; | |
var isFixed = styleString(this, 'position') == 'fixed'; | |
return { | |
x: bound.left + ((isFixed) ? 0 : html.scrollLeft) - html.clientLeft, |
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
; Shift + Wheel for horizontal scrolling | |
+WheelDown::WheelRight | |
+WheelUp::WheelLeft |