Skip to content

Instantly share code, notes, and snippets.

View aarongustafson's full-sized avatar
👋
he/him/his

Aaron Gustafson aarongustafson

👋
he/him/his
View GitHub Profile
<header>
<h1><img src="i/logo.png"/></h1>
<nav>
<ol>
<li><a href="#details">Details</a></li>
<li><a href="#lodging">Lodging</a></li>
<li><a href="#location">Location</a></li>
<li><a href="#topics">Topics</a></li>
<li><a href="#contact">Contact Us</a></li>
</ol>
<figure>
<img class="photo" src="i/aaron.jpg" alt=""/>
</figure>
p {
color: red;
font-weight: bold;
}
/* =Color */
a:link, a:visited, a:active {
color: rgb(22, 127, 53);
}
a:hover {
color: rgb(242, 98, 42);
}
/* =Effects */
a {
@aarongustafson
aarongustafson / sample.css
Created October 14, 2010 20:22
Code highlighting issue with Chrome not displaying text that creates ligatures with a Q in a custom font
body {
color: #524238;
font: normal normal normal 13px/1.231 Neuton, Georgia, serif;
text-shadow: rgba(0, 0, 0, 0.0078125) 0px 0px 1px;
}
#main article > footer ul li {
font-family: 'IM Fell English', Georgia, serif;
font-weight: normal;
}
@aarongustafson
aarongustafson / sample.css
Created October 14, 2010 20:28
Code highlighting issue with Chrome's treatment of small-capped custom fonts
.full-article .masthead h1 {
font-size: 32px;
font-variant: small-caps;
line-height: 1;
margin: 0px;
}
h1 {
font-family: 'IM Fell English', Georgia, serif;
font-weight: normal;
}
@aarongustafson
aarongustafson / .htaccess
Created March 9, 2011 16:01
PHP-based compression of HTML & CSS (doesn't compress whitespace in <pre> elements)
# compress the code
php_value auto_prepend_file ./prepend.php
php_value auto_append_file ./append.php
@aarongustafson
aarongustafson / grid-item.css
Created August 4, 2011 22:34
Experimenting with Grids Using eCSStender
#articles {
grid-row:2;
grid-column:1;
}
@aarongustafson
aarongustafson / backup-to-git.sh
Created August 10, 2011 15:44
DB Backup to Git
#!/bin/bash
##
# MySQL DB dump to Git commit
#
# Dumps the specified mysql database to the given location and commits it and
# the previous database to the Git repository.
#
# It is assumed you have already setup the Git respository to only be the
# a checkout of the database backup location
@aarongustafson
aarongustafson / .htaccess
Created September 29, 2011 12:40
An example of how Costco could redirect mobile requests properly
# setup
RewriteEngine on
RewriteBase /
# product redirection based on iPhone and product request
# note: the user agent check is contrived, you should have
# a much more robust checker
RewriteCond %{HTTP_USER_AGENT} iPhone
RewriteCond %{QUERY_STRING} Prodid=(\d+)
RewriteRule ^Browse\/Product\.aspx http://m.costco.com/costco/product/productDirectDetail.do?itemId=%1 [R=301,L]