Skip to content

Instantly share code, notes, and snippets.

View ariunbat's full-sized avatar

Ariunbat ariunbat

View GitHub Profile
@ariunbat
ariunbat / gist:2064776
Created March 17, 2012 19:52 — forked from padolsey/gist:527683
JavaScript: Detect IE
// ----------------------------------------------------------
// 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) {}
@ariunbat
ariunbat / fetch
Last active December 1, 2015 13:44
Fetch Settings for Sublime Text 2
{
"files":
{
"avgrundjs": "https://raw.github.com/voronianski/jquery.avgrund.js/master/js/jquery.avgrund.js",
"backbone": "http://documentcloud.github.com/backbone/backbone.js",
"backbone.localStorage": "https://raw.github.com/jeromegn/Backbone.localStorage/master/backbone.localStorage.js",
"backbone.min": "http://documentcloud.github.com/backbone/backbone-min.js",
"d3js": "http://d3js.org/d3.v3.min.js",
"raphaeljs": "http://github.com/DmitryBaranovskiy/raphael/raw/master/raphael-min.js",
"history": "https://raw.github.com/balupton/history.js/master/scripts/compressed/history.js",