Skip to content

Instantly share code, notes, and snippets.

View dcalhoun's full-sized avatar

David Calhoun dcalhoun

View GitHub Profile
# colorize
export CLICOLOR=1
#export LSCOLORS=exfxCxDxbxegedabagacad
DIR=ex
SYM_LINK=fx
SOCKET=Cx
PIPE=Dx
EXE=cx
BLOCK_SP=eg
@dcalhoun
dcalhoun / cs-pattern-library.md
Last active December 18, 2015 14:28
Centresource Pattern Library List

Centresource Pattern Library Guide

Below are elements that are expected to be in a Photoshop pattern library file.

Typography

  • Headers (h1 - h5)
  • Paragraphs
  • Lead Copy
  • Unordered List
@dcalhoun
dcalhoun / gist:5208401
Created March 20, 2013 21:02
WordPress queries shortcut for SequelPro.
UPDATE wp_options SET option_value = replace(option_value, '${1:OLD_SITE_URL}', '${2:NEW_SITE_URL}') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, '$1','$2');
UPDATE wp_posts SET post_content = replace(post_content, '$1', '$2');
UPDATE wp_postmeta SET meta_value = replace(meta_value, '$1', '$2');
@dcalhoun
dcalhoun / spin-jquery.js
Created August 7, 2012 15:58
Spin.js jQuery Function
jQuery.fn.spin = (opts) ->
if opts != false
opts =
className: 'js-spinner'
lines: 13
length: 5
width: 3
radius: 7
speed: 1.2
trail: 50