Skip to content

Instantly share code, notes, and snippets.

Joshua Canfield jcanfield

Block or report user

Report or block jcanfield

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View devtools.sh
sudo aptitude install build-essential libsqlite3-dev php5-cli sun-java6-jre sun-java6-fonts ruby rdoc chromium-browser git-core phpmyadmin ruby-dev libxml2-dev libxslt1-dev
@jcanfield
jcanfield / revised-font-stack.css
Created Sep 4, 2011 — forked from dwabnitz/revised-font-stack.css
A Revised Web Font Stack Selection
View revised-font-stack.css
/*
A Revised Font Stack
from A Way Back
http://www.awayback.com/revised-font-stack/
*/
/*
@jcanfield
jcanfield / revised-font-stack.css
Created Sep 4, 2011 — forked from dwabnitz/revised-font-stack.css
A Revised Web Font Stack Selection
View revised-font-stack.css
/*
A Revised Font Stack
from A Way Back
http://www.awayback.com/revised-font-stack/
*/
/*
@jcanfield
jcanfield / issue.py
Created Dec 26, 2011 — forked from dlo/issue.py
git hook to push issues to github
View issue.py
#!/usr/bin/env python
"""
LICENSE
=======
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar
@jcanfield
jcanfield / deploy.sh
Created Jan 5, 2012 — forked from khalsah/deploy.sh
Experimental git sync & deploy hooks
View deploy.sh
#!/bin/sh
LOCAL_BRANCH="master"
LIVE_BRANCH="live"
REMOTE_NAME="web"
# Remote Name is your Deploy Branch. Default is web. Live Branch is the branch on the Remote Server that is merged with master to synchronize changes
if [ "$(git symbolic-ref -q HEAD)" != "refs/heads/${LOCAL_BRANCH}" ]; then
echo "Not on ${LOCAL_BRANCH}, not deploying"
exit 1
@jcanfield
jcanfield / deploy.rb
Created Mar 18, 2012 — forked from treybean/deploy.rb
Heroku Deployment Script
View deploy.rb
#!/usr/bin/env ruby
# Usage
# ./deploy [staging|production] <options>
#
# Options
# -m or --maintenance - Put the application into maintenance mode
# -b or --branch - deploy from a branch other than "master"
if ['staging', 'production'].include? ARGV[0]
@jcanfield
jcanfield / wp-modifydb.php
Created Mar 29, 2012
Serialized PHP Search and Replace
View wp-modifydb.php
<?php
/**
*
* Safe Search and Replace on Database with Serialized Data v2.0.1
*
* This script is to solve the problem of doing database search and replace when
* developers have only gone and used the non-relational concept of serializing
* PHP arrays into single database columns. It will search for all matching
* data on the database and change it, even if it's within a serialized PHP
* array.
@jcanfield
jcanfield / bootstraped-tumblr-theme.html
Created May 2, 2012
bootstrap tumblr theme for quickredthought.tumblr.com
View bootstraped-tumblr-theme.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{Title}</title>
<link rel='icon' href='{Favicon}'>
<link rel='shortcut icon' href='{Favicon}'>
<link rel='alternate' type='application/rss+xml' href='{RSS}'>
<meta name='description' content='{MetaDescription}'>
<meta name='color:Link' content='#6699cc'>
@jcanfield
jcanfield / pushup_css.css
Created May 11, 2012 — forked from svizion/pushup_css.css
CSS PushUp Like Effect
View pushup_css.css
@font-face {font-family:"font";src:url("https://")}@media (touch-enabled),(-webkit-touch-enabled),(-moz-touch-enabled),(-o-touch-enabled),(-ms-touch-enabled),(modernizr){#touch{top:9px;position:absolute}}@media (transform-3d),(-webkit-transform-3d),(-moz-transform-3d),(-o-transform-3d),(-ms-transform-3d),(modernizr){#csstransforms3d{left:9px;position:absolute;height:3px;}}#generatedcontent:after{content:":)";visibility:hidden}
@jcanfield
jcanfield / html5-shiv.js
Created May 20, 2012
HTML5 Shiv pre3.5
View html5-shiv.js
/*! HTML5 Shiv pre3.5 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
Uncompressed source: https://github.com/aFarkas/html5shiv */
(function(a,b){function h(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function i(){var a=l.elements;return typeof a=="string"?a.split(" "):a}function j(a){var b={},c=a.createElement,f=a.createDocumentFragment,g=f();a.createElement=function(a){l.shivMethods||c(a);var f;return b[a]?f=b[a].cloneNode():e.test(a)?f=(b[a]=c(a)).cloneNode():f=c(a),f.canHaveChildren&&!d.test(a)?g.appendChild(f):f},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/\w+/g,function(a){return b[a]=c(a),g.createElement(a),'c("'+a+'")'})+");return n}")(l,g)}function k(a){var b;return a.documentShived?a:(l.shivCSS&&!f&&(b=!!h(a,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,
You can’t perform that action at this time.