Skip to content

Instantly share code, notes, and snippets.

View eboyer's full-sized avatar
🦊

Eric Boyer eboyer

🦊
View GitHub Profile
@eboyer
eboyer / full CSS3 background
Created December 1, 2010 20:57
full page image background, with a fix for IE
html {
background: url(images/myBackground.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
/* FOR IE
dl.expand{
float: left; display: inline;
width: 315px;
margin: 0 20px 14px 0;
&:nth-child(even){ margin-right: 0; }
dt{
border-bottom: 1px solid #fff;
position: relative;
cursor: pointer;
h3{ margin: 0; border-bottom: 1px solid #cecece; }
@eboyer
eboyer / gist:1100377
Created July 22, 2011 20:41
Fade in content after Typekit is loaded
odc.fadeContent = function(){
//Content you want to animate in, hide on load.
$("div.inner").hide();
var htmlInterval = window.setInterval(function() {
var htmlClass = $('html').attr('class');
if(htmlClass.indexOf('wf-active') >= 0) {
//Content you want faded in.
$("div.inner").fadeIn(1500, function(){
//Clear interval after animation completes.
@eboyer
eboyer / gist:1105275
Created July 25, 2011 21:26
Shaun Crittenden Modals
concentrated.modals = function(btn,modal){
var $btn = $(btn);
var $modal = $(modal);
var $overlay = $('#overlay');
var $close = $('a.close', $modal);
// set overlay height
var docHeight = $(document).height();
$overlay.css({ height : docHeight });
@eboyer
eboyer / gist:1217810
Created September 14, 2011 21:15
typekit loading
//Fade in content after Typekit loads.
odc.fadeContent = function(){
//Content you want to animate in, hide on load.
$("div.inner").hide();
var htmlInterval = window.setInterval(function() {
var htmlClass = $('html').attr('class');
if(htmlClass.indexOf('wf-active') >= 0) {
//Content you want faded in.
$("div.inner").fadeIn(1500, function(){
@eboyer
eboyer / WP Import Cleanup
Created April 25, 2012 08:17
WP Import Cleanup (Removing some inline styles after a import)
UPDATE at_posts SET post_content = REPLACE(post_content, ' style="text-align: center;"', '');
UPDATE at_posts SET post_content = REPLACE(post_content, ' style="text-align: left;"', '');
UPDATE at_posts SET post_content = REPLACE(post_content, 'aligncenter', '');
UPDATE at_posts SET post_content = REPLACE(post_content, 'aligncenter ', '');
UPDATE at_posts SET post_content = REPLACE(post_content, '<img class=" ', '<img class="');
UPDATE at_posts SET post_content = REPLACE(post_content, '<strong>', '');
UPDATE at_posts SET post_content = REPLACE(post_content, '</strong>', '');
UPDATE at_posts SET post_content = REPLACE(post_content, '<font>', '');
UPDATE at_posts SET post_content = REPLACE(post_content, '</font>', '');
UPDATE at_posts SET post_content = REPLACE(post_content, '<b>', '');
@eboyer
eboyer / cmal-fresh-mac-setup.md
Created November 25, 2012 05:29 — forked from cmalven/cmal-fresh-mac-setup.md
Fresh Mac Setup

New Computer Setup

Last tested using Mac OS X 10.8 Mountain Lion

Setup Dropbox

Copy Dropbox folder from previous drive to user folder

/* Register Links */
#ds-header-links{
}
/* Main Content */
#ds-content{
}
#ds-main-content{
}
#ds-main-content li.ds-entry,
@eboyer
eboyer / gist:5622656
Created May 21, 2013 19:48
bundler uninstaller
rubygems-bundler-uninstaller
@eboyer
eboyer / gist:6725148
Created September 27, 2013 07:16
Chrome Editable Text
Typing “document.body.contentEditable = true;” into Chrome DevTools makes all of the text on a page editable.