Skip to content

Instantly share code, notes, and snippets.

View amit1952's full-sized avatar

Amitava Das Gupta amit1952

View GitHub Profile
@amit1952
amit1952 / HTML5 Templ
Created March 9, 2012 02:56
HTML5 Template
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" href="style.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
</head>
@amit1952
amit1952 / DetectIE.js
Created March 16, 2012 04:37 — 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) {}
@amit1952
amit1952 / common.scss
Created March 16, 2012 04:45 — forked from eijik/common.scss
SCSS: Common scss
// COLOR ****************************************************/
$bordercolor: #888;
$activecolor: #D61518;
$aqua:#00FFFF;
$bisque:#ffe4c4;
$black:#000000;
$blue:#0000FF;
$brown:#A52A2A;
@amit1952
amit1952 / CSS Button
Created May 8, 2012 06:49
CSS: Button Class
/* Change the gradient colors to suit */
.button {
background: -webkit-linear-gradient(center top , #76BF6B, #3B8230) repeat-x scroll 0 0 #3B8230;
background: -moz-linear-gradient(center top , #76BF6B, #3B8230) repeat-x scroll 0 0 #3B8230;
background: -o-linear-gradient(center top , #76BF6B, #3B8230) repeat-x scroll 0 0 #3B8230;
background: -ms-linear-gradient(center top , #76BF6B, #3B8230) repeat-x scroll 0 0 #3B8230;
background:linear-gradient(center top , #76BF6B, #3B8230) repeat-x scroll 0 0 #3B8230;
border:1px solid rgba(0, 0, 0, 0.5);
clear:both;
color:#FFFFFF;
@amit1952
amit1952 / gist:2954658
Created June 19, 2012 14:59 — forked from tillsc/gist:974281
html4 template
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>HTML4 Dokument</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
</body>
</html>
@amit1952
amit1952 / gist:4418177
Created December 31, 2012 07:44
CSS: Image Replacement
.ir {
border: 0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background-color: transparent;
}
@amit1952
amit1952 / HTMLShiv.js
Created February 9, 2013 11:22
Javascript: HTML5 Shiv Fragment
<!--[If lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.zs"></script>
<![endif] -->
@amit1952
amit1952 / curl.cmd
Created May 17, 2013 07:10 — forked from morhetz/curl.cmd
Use curl from Windows Command Line
@rem Do not use "echo off" to not affect any child calls.
@setlocal
@rem Get the abolute path to the parent directory, which is assumed to be the
@rem Git installation root.
@for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI
@set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH%
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
@amit1952
amit1952 / Codigniter htaccess
Created August 6, 2013 02:21
htaccess to implicitly route all requests through index.php
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
# Send request via index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
@amit1952
amit1952 / cf.css
Last active October 27, 2016 12:49
CSS: clear float
/* Nicholas Gallagher's clearfix.hack.
/* For Modern Browsers */
.cf:before,
.cf:after {
content: " ";
display: table;
}
.cf:after {
clear: both;