Skip to content

Instantly share code, notes, and snippets.

@pipster
pipster / trash.html
Created March 7, 2012 08:44
HTML: Starting Template
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
@pipster
pipster / gist:1992027
Created March 7, 2012 08:53 — forked from laustdeleuran/anon-function.js
JavaScript: Anonymous function
(function(){
// Safe, scoped JavaScript here. Phew.
})();
@pipster
pipster / gist:1992038
Created March 7, 2012 08:57
HTML: favicon
<link rel="shortcut icon" href="favicon.ico" >
@pipster
pipster / gist:1992046
Created March 7, 2012 08:59
HTML: Country Code Drop Down
<select>
<option value=" " selected>(please select a country)</option>
<option value="--">none</option>
<option value="AF">Afghanistan</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
@pipster
pipster / gist:1992053
Created March 7, 2012 09:01
HTML: US States Drop Down
<!-- Without Codes -->
<select name="state">
<option>Alabama</option>
<option>Alaska</option>
<option>Arizona</option>
<option>Arkansas</option>
<option>California</option>
<option>Colorado</option>
<option>Connecticut</option>
<option>Delaware</option>
@pipster
pipster / gist:1992062
Created March 7, 2012 09:03
HTML: External JavaScript
<script src="assets/js/file.js"></script>
@pipster
pipster / gist:2015176
Created March 11, 2012 05:47
JavaScript: Less.js CDN
<script src="http://lesscss.googlecode.com/files/less-1.0.18.min.js"></script>
@pipster
pipster / index.html
Created March 14, 2012 04:13
HTML: basic
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
@pipster
pipster / IE conditionals
Created March 14, 2012 04:13 — forked from philsherry/IE conditionals
Conditional comments for including IE-related stuff
<!--[if lte IE 8]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<link rel="stylesheet" href="/css/ie.css" media="screen" />
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" href="/css/ie7.css" media="screen" />
<![endif]-->
<!--[if lte IE 6]>
<link rel="stylesheet" href="/css/ie6.css" media="screen" />
<![endif]-->
@pipster
pipster / gist:2035003
Created March 14, 2012 08:11
CSS: Joseph Lowery Simple reset
* {
vertical-align: baseline;
font-weight: inherit;
font-family: inherit;
font-style: inherit;
font-size: 100%;
outline: 0;
padding: 0;
margin: 0;
}