Skip to content

Instantly share code, notes, and snippets.

View codeimpossible's full-sized avatar
🍕
P I Z Z A

Jared Barboza codeimpossible

🍕
P I Z Z A
View GitHub Profile
@codeimpossible
codeimpossible / gist:1447083
Created December 8, 2011 14:08
Brute force way to eliminate nasty alert() statements
// brute force
// this actually turns out to be better than alert()
// as it will stop stupid "[Object object]" alerts
// and instead log the actual object to the console
// the console && console.log check is to make sure
// this code doesn't fail in IE which does not create
// the console obj unless the user has dev tools open.
window.alert = function(m) {
if(console && console.log) {
@codeimpossible
codeimpossible / ie_hacks.css
Created December 6, 2011 21:15
IE Css Hackery
li.search span.selection {
height: /*\**/19px!important; /*ie9*/
_height: 19px!important; /*ie6*/
}
@media \0screen {
li.search span.selection {
height: 20px!important; /*ie8*/
}