Skip to content

Instantly share code, notes, and snippets.

View devinhalladay's full-sized avatar
🌱
running my fingers through the grass

devin devinhalladay

🌱
running my fingers through the grass
View GitHub Profile
@sevenspark
sevenspark / styles.css
Created December 20, 2011 04:58
ThemeSwitcher + Preview
/* Preview hover styles */
#theme_list ul li {
position:relative;
}
.product-preview{
position:absolute;
left:100%;
top:-1px;
margin-left:1px;
background:#222;
<!--
A quick fix for my friend Chris Bowler.
http://chrisbowler.com/journal/alternate-css-files
-->
<link rel="stylesheet" media="screen" id="time_style" href="/-/css/day.css" />
<script>
@ghickman
ghickman / _contact.rb
Created July 4, 2010 17:23
Jekyll Contact Form with Sinatra
require 'rubygems'
require 'sinatra'
require 'pony'
require 'haml'
set :haml, {:format => :html5}
set :public, File.dirname(__FILE__)
set :views, File.dirname(__FILE__)
# Create the page class and give it a title of Contact for the layout
@karteek
karteek / custom_404_for_tumblr.js.htm
Created December 19, 2009 18:49
A way to enable custom 404 for Tumblr. Well, it 'kinda' works
<script type="text/javascript">
/* Works for me */
var text_posts = document.getElementsByClassName("regular");
var text_404 = "The URL you requested could not be found.";
var title_404 = "Not Found";
if(text_posts.length == 1){
var bodyNode = text_posts[0].lastChild;
if(bodyNode.previousSibling.textContent == text_404) {
// titleNode.innerHTML = "<a href='/'>Not Found</a>";
var blog_loc = "http://" + document.domain + "/";