Skip to content

Instantly share code, notes, and snippets.

var pattern = /(?:chaseadams\..{2,4}|gmail.com|zappos.com|myfooyourbar\.(?:com|net))$/g
@curiouslychase
curiouslychase / jekyllmeta.sublime-snippet
Created August 13, 2013 13:40
Quick Jekyll Meta Sublime Snippet. USE: in sublime, type jm, hit tab and your snippet is inserted.
<snippet>
<content><![CDATA[
---
layout: post
title: "${1:Post Title}"
date: "${2:Date}"
tags: [${3:Tags}]
excerpt: "${4:The Excerpt}"
---
]]></content>
@curiouslychase
curiouslychase / jekyll_highlight_mod.rb
Last active December 20, 2015 07:29
A script to modify Jekyll's highlight class. Updated for Jekyll 1.0.3 from this blog post: http://thanpol.as/jekyll/jekyll-code-highlight-and-line-numbers-problem-solved/
# Working as of Jekyll 1.0.3
module Jekyll
class WrapHighlightBlock < Jekyll::Tags::HighlightBlock
def initialize(tag_name, markup, tokens)
super
end
def render(context)
'<figure class="code"><figcaption></figcaption>' + super + '</figure>'
#Because it's more fun this way.
alias rtfm="man"
@curiouslychase
curiouslychase / chase.bashrc
Created March 20, 2013 22:40
General bashrc sourced from my bash_profile
#!/bin/bash
# This is my general bashrc that I source into bash_profile.
# Why you ask? Good question: Because I have more than one computer that
# I use terminal and vim on and the bash_profiles on both of them have totally
# different aliases for directory hotswitching and other commands.
# For some reason this is required for the PS1 to work with __git_ps1
PATH="/usr/local/bin:${PATH}"
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
/* apply a natural box layout model to all elements */
*
-moz-box-sizing: border-box
-webkit-box-sizing: border-box
box-sizing: border-box
@curiouslychase
curiouslychase / _resets.sass
Last active December 15, 2015 02:09
Eric Meyers' CSS Reset v2.0 & Chris Coyier's group clearfix & Paul Irishes box layout model SASSified
/**
* Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
* http://cssreset.com
*/
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, img, ins, kbd, q, s, samp,
small, strike, sub, sup, tt, var,
u, center,