Skip to content

Instantly share code, notes, and snippets.

View karlstolley's full-sized avatar

Karl Stolley karlstolley

View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" id="mysite-com">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Page Title: Site Name</title>
</head>
@karlstolley
karlstolley / posh-skeleton.htm
Created August 22, 2010 18:04
Skeletal XHTML Page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Page Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--Use device width on iPhone, other mobile devices; no scaling-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@karlstolley
karlstolley / bare-bones.htm
Created August 30, 2010 21:06
Bare-bones XHTML file for COM530
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Page Title: Site Name</title>
</head>
<body>
@karlstolley
karlstolley / index.htm
Created September 20, 2010 22:35
Advanced CSS Selectors Demo
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Advanced CSS Selectors</title>
<style type="text/css" media="screen">
/*Write CSS styles here using the Web Developer Add-on*/
</style>
</head>
@karlstolley
karlstolley / index.htm
Created November 8, 2010 18:31
Bare-bones XHTML plus jQuery for COM530
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery and DOM Scripting</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<script type="text/javascript">
/*Events to happen once the document/DOM has loaded:*/
@karlstolley
karlstolley / index.htm
Created November 22, 2010 22:48
XHTML 1.0 Strict to HTML5 (A COM530 Exercise)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Page Title: Site Name</title>
</head>
<body>
<div id="header">
</div>
<ul id="navigation">
@karlstolley
karlstolley / git-aliases
Created January 25, 2011 19:15
My git aliases, which bespeak an unsound mind--but they work for me. So hey. Other prompt/terminal stuff, too.
# Karl's Git Aliases
alias gits='git status'
alias gita='git add'
alias gitm='git commit -m'
alias gitam='git commit -am'
alias gitpom='git push origin master'
alias gitplm='git pull origin master'
alias gitl='git log --pretty=oneline --abbrev-commit'
alias gitlf='git log --pretty=oneline --abbrev-commit --name-only'
alias gitdw='git diff --color-words'
@karlstolley
karlstolley / .bashrc
Created February 28, 2011 23:00
Original .bashrc from lab Linux computers, plus lines necessary for RVM
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
# [ -z "$PS1" ] && return
# RVM:
if [[ -n "$PS1" ]] ; then
@karlstolley
karlstolley / index.htm
Created March 16, 2011 22:44
XHTML 1.0 Strict DOCTYPE (Book)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@karlstolley
karlstolley / doctype.txt
Created April 30, 2011 02:01
HTML5 DOCTYPE in hex, octal, decimal, and binary
<!DOCTYPE html>
offs asc hex dec oct bin
0000: < 3C 060 074 00111100
0001: ! 21 033 041 00100001
0002: D 44 068 104 01000100
0003: O 4F 079 117 01001111
0004: C 43 067 103 01000011
0005: T 54 084 124 01010100
0006: Y 59 089 131 01011001