Skip to content

Instantly share code, notes, and snippets.

View jongamble's full-sized avatar

Jon Gamble jongamble

View GitHub Profile
@jongamble
jongamble / wp-button-shortcode
Created March 26, 2014 18:26
Wordpress custom button shortcode
/*******
* Shortcode for buttons
*******/
function cta_button_func( $atts, $content = null ) {
extract( shortcode_atts( array(
'href' => 'http://10.6.11.245/barrettlawoffices.com/',
'size' => 'text',
), $atts ) );
@jongamble
jongamble / mixin-placeholder.scss
Created July 16, 2014 14:32
Placeholder style mixin
@mixin placeholder {
&::-webkit-input-placeholder {@content}
&:-moz-placeholder {@content}
&::-moz-placeholder {@content}
&:-ms-input-placeholder {@content}
}
@jongamble
jongamble / mixins-master.scss
Created July 24, 2014 19:43
Main Mixins for any project
// These variables are to denote where our breakpoints live.
// They are in EMs and these values came from (Breakpoint / 16) = em value
$four-column-max: 39.9375em;
$eight-column: 40em;
$eight-column-max: 59.9375em;
$twelve-column: 60em;
$twelve-column-max: 79.9375em;
$sixteen-column: 80em;
@jongamble
jongamble / mongod-start
Created November 4, 2014 16:15
Launch Mongod terminal OSX
sudo mongod --fork --logpath /data/db/mongod.log --logappend