Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<!-- Helpful things to keep in your <head/>
// Brian Blakely, 360i
// http://twitter.com/brianblakely/
-->
<head>
<!-- According to Heather Champ, former community manager at flickr,
you should not allow search engines to index your "Contact Us"
@sthembi
sthembi / jQuery.collapsible.js
Created April 28, 2011 04:07 — forked from jrochkind/jQuery.collapsible.js
modified collapsible.js
/**
* --------------------------------------------------------------------
* jQuery collapsible plugin
* Author: Scott Jehl, [email protected]
* Copyright (c) 2009 Filament Group
* licensed under MIT (filamentgroup.com/examples/mit-license.txt)
* --------------------------------------------------------------------
*
* See: http://dwpe.googlecode.com
* http://filamentgroup.com/lab/expand_and_collapse_content_accessibly_with_progressive_enhancement_jquery/
/* This is a linear gradient that will go from:
very light grey (#EEE) at the top,
to medium grey (#BBB) at the bottom
*/
.grey_gradient {
/* Graceful fallback for unsupported browsers */
background: #ccc;
/* Firefox 3.6+ */
background-image: -moz-linear-gradient(top, #eee, #bbb);
/* Webkit (Safari 4+, Chrome) */
@sthembi
sthembi / fiddle.css
Created December 21, 2011 02:31 — forked from zalun/fiddle.css
jsFiddle template
body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid #999;
}
@sthembi
sthembi / example.php
Created August 31, 2012 11:48 — forked from jonathonbyrdziak/example.php
Wordpress Metabox, stand alone class for multiple metabox abilities
<?php
/*
Here's a couple of metaboxes that I've recently created using this system
*/
$subpostings = redrokk_metabox_class::getInstance('subpostings', array(
'title' => '(optional) Subscription for Postings',
'description' => "As an optional feature, you have a complete api at your disposal which will allow you the ability to offer and manage member posts. In addition to these settings, you may need to create the associated pages for accepting posts from your frontend.",
@sthembi
sthembi / dabblet.css
Created October 20, 2012 16:02 — forked from anonymous/dabblet.css
CSS3 borders and box-shadow experiment
/**
* CSS3 borders and box-shadow experiment
*/
body {
/*background: #f06;
background: linear-gradient(45deg, #f06, yellow);*/
min-height: 100%;
}
button {margin:40px;}
@sthembi
sthembi / gist:4053144
Created November 11, 2012 00:26 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@sthembi
sthembi / LICENSE.txt
Created November 24, 2012 09:03 — forked from eliperelman/LICENSE.txt
Preloader140
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@sthembi
sthembi / dabblet.css
Created February 13, 2013 19:54
Tucked corners with one element
/**
* Tucked corners with one element
From LeaVerou - love this!!
*/
html {
background: url('http://www.red-team-design.com/wp-content/uploads/2012/10/wood.png')
}
body {
@sthembi
sthembi / gist:8937786
Created February 11, 2014 16:02 — forked from kloon/gist:4228021
//Display Fields
add_action( 'woocommerce_product_after_variable_attributes', 'variable_fields', 10, 2 );
//JS to add fields for new variations
add_action( 'woocommerce_product_after_variable_attributes_js', 'variable_fields_js' );
//Save variation fields
add_action( 'woocommerce_process_product_meta_variable', 'variable_fields_process', 10, 1 );
function variable_fields( $loop, $variation_data ) {
?>
<tr>