Skip to content

Instantly share code, notes, and snippets.

View acconrad's full-sized avatar
🤓
VR to the moon

Adam Conrad acconrad

🤓
VR to the moon
View GitHub Profile
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@acconrad
acconrad / mq.css
Created October 8, 2012 10:35 — forked from chriscoyier/mq.css
@media only screen and (min-width: 320px) {
/* Small screen, non-retina */
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),
@acconrad
acconrad / html5.haml
Created April 26, 2012 20:39 — forked from fnhipster/html5.haml
HTML5 HAML Template
!!!
%title= "Your Website"
%meta{ :charset => "utf-8" }
%meta{ :http-equiv="X-UA-Compatible" :content => "IE=edge,chrome=1" }
%meta{ :content => "", :name => "description" }
%meta{ :content => "", :name => "author" }
%link{ :href => "/css/style.css", :rel => "stylesheet" }
%header
%nav
%ul