Skip to content

Instantly share code, notes, and snippets.

nravichandra / 0_reuse_code.js
Created February 21, 2017 15:32
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
nravichandra / source.html
Created May 12, 2012 09:17
HTML: Get HTML5 Shim
View source.html
<!--[if lt IE 9]>
<script src="//"></script>
View gist:2566446
// ----------------------------------------------------------
// 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) {}
View codeigniter_htaccess
RewriteEngine On
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1