Skip to content

Instantly share code, notes, and snippets.

View awayken's full-sized avatar

Miles Rausch awayken

View GitHub Profile
@awayken
awayken / content.html
Created October 3, 2011 14:19
New HTML 5 Website
<h1>Heading 1</h1>
<p>HTML, which stands for <a href="http://en.wikipedia.org/wiki/HTML">HyperText Markup Language</a>, is the predominant markup language for web pages. It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items. It allows images and objects to be embedded and can be used to create interactive forms. It is written in the form of HTML elements consisting of &quot;tags&quot; surrounded by angle brackets within the web page content. It can embed scripts in languages such as JavaScript which affect the behavior of HTML webpages. HTML can also be used to include Cascading Style Sheets (CSS) to define the appearance and layout of text and other material. The W3C, maintainer of both HTML and CSS standards, encourages the use of CSS over explicit presentational markup.</p>
<h2>Heading 2</h2>
<p>This is <strong>bolded text</strong>. This is <em>italicized text</em>. This is <u>underlined text</u>. This
@awayken
awayken / content.html
Created October 3, 2011 14:28
New XHTML (Transitional) Website
<h1>Heading 1</h1>
<p>HTML, which stands for <a href="http://en.wikipedia.org/wiki/HTML">HyperText Markup Language</a>, is the predominant markup language for web pages. It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items. It allows images and objects to be embedded and can be used to create interactive forms. It is written in the form of HTML elements consisting of &quot;tags&quot; surrounded by angle brackets within the web page content. It can embed scripts in languages such as JavaScript which affect the behavior of HTML webpages. HTML can also be used to include Cascading Style Sheets (CSS) to define the appearance and layout of text and other material. The W3C, maintainer of both HTML and CSS standards, encourages the use of CSS over explicit presentational markup.</p>
<h2>Heading 2</h2>
<p>This is <strong>bolded text</strong>. This is <em>italicized text</em>. This is <u>underlined text</u>. This
@awayken
awayken / dabblet.css
Created February 12, 2012 20:34
CSS3 Secrets
/**
* CSS3 Secrets
*/
#box1 { background: blue; width: 250px; height: 250px; transition: .5s; }
#box1:hover { width: 500px; }
/** slide 2
#box1:hover { transition: 1.5s; }
**/
/** slide 5
#box1:hover { transition: .5s cubic-bezier(0, 1, 1, 2); }
@awayken
awayken / gist:1818529
Created February 13, 2012 17:40
wget Sample
wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains [domain] --no-parent [start url]
@awayken
awayken / dabblet.css
Created February 16, 2012 22:32
Untitled
#source {
flow-into: example;
}
.region {
flow-from: example;
background: #C5DFF0;
width: 180px;
height: 225px;
margin: 1em;
}
@awayken
awayken / dabblet.css
Created March 17, 2012 03:40
Baby Loader RELOADED.
/**
* Baby Loader RELOADED.
*/
#babyprogress_1341629482000{border:1px solid #000;background:#eee;overflow:hidden;-webkit-border-radius:12px;-moz-border-radius:12px;border-radius:12px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;}
#babyprogress_1341629482000>div{
background-color: #85ff51;
background-image: -webkit-gradient(linear, left top, left bottom, from(#85ff51), to(#7bd150));
background-image: -webkit-linear-gradient(top, #85ff51, #7bd150);
background-image: -moz-linear-gradient(top, #85ff51, #7bd150);
@awayken
awayken / getCharCount.sql
Created April 4, 2012 14:01
Counts the number of times a given character shows up in a varchar
-- =============================================
-- Author: Miles Rausch
-- Create date: 12/8/2011
-- Description: Counts the number of times a given character shows up in a varchar
-- =============================================
CREATE FUNCTION getCharCount
(
@source varchar(MAX),
@char char(1)
)
@awayken
awayken / dabblet.css
Created April 17, 2012 04:04
Flipboard - detail, with hover.
/**
* Flipboard - detail, with hover.
*/
@-webkit-keyframes grow {
from { top: 44px; bottom: 88px; }
to { top: 0; bottom: 0; }
}
body {
@awayken
awayken / uri.js
Created April 22, 2012 03:40 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@awayken
awayken / reset.less
Created May 20, 2012 20:51
Default LESS
// http://meyerweb.com/eric/tools/css/reset/
// v2.0 | 20110126
// License: none (public domain)
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,