Skip to content

Instantly share code, notes, and snippets.

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@joemcgill
joemcgill / WP custom post time
Created May 25, 2013 16:52
A custom post time function for WordPress that allows you to change the output for posts that are published today.
/**
* custom post time function
*
* @uses global $post, get_the_time() and get_the_date()
* @vars $d (for custom date formatting), $t (for custom time formatting)
* @returns $my_post_time
*/
function my_post_time($d, $t) {
global $post;
@joemcgill
joemcgill / WP Fix Image Margins
Last active October 14, 2016 08:11
Removes the silly 10px margin from caption based images in WP (H/T Justin Adie)
/**
* Description: removes the silly 10px margin from caption based images
* Author: Justin Adie
* Version: 0.1.0
* Author URI: http://rathercurious.net
*/
class fixImageMargins{
public $xs = 0; //change this to change the amount of extra spacing
@joemcgill
joemcgill / textbg.css
Created November 5, 2012 22:10
Inline Text Background (CSS only)
/*
* Class for defining text with background on text only and not the whole block.
* May require definition of html element (i.e. p.textbg) in order to make line-height
* and font-size work.
*/
.textbg {
padding:5px 0; /* top and bottom padding */
color:#fff;
font-size: 24px;