Skip to content

Instantly share code, notes, and snippets.

View curtismchale's full-sized avatar

Curtis McHale curtismchale

View GitHub Profile

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.

<?php
if ( ! defined( 'ABSPATH' ) ){
exit;
}
class Nexcess_Add_To_Team_Trigger extends AutomateWoo\Trigger{
/**
* Define which data items are set by this trigger, this determines which rules and actions will be available
@curtismchale
curtismchale / nexcess-trigger-base.php
Last active January 13, 2024 13:15
[Nexcess - AutomateWoo Triggers] see blog post: https://www.nexcess.net/blog/adding-custom-triggers-to-automatewoo/ #woocommerce #automatewoo
<?php
/*
Plugin Name: Nexcess - AutomateWoo Triggers
Plugin URI: https://nexcess.net
Description: Adds custom triggers to AutomateWoo
Version: 1.0
Author: SFNdesign, Curtis McHale
Author URI: http://sfndesign.ca
License: GPLv2 or later
*/
<?php
class SFN_Group_WP_Admin extends SFN_Group_Purchase_PMPRO{
private static $instance;
/**
* Spins up the instance of the plugin so that we don't get many instances running at once
*
* @since 1.0
@curtismchale
curtismchale / member article CTA.html
Created April 28, 2023 13:58
[Member Article CTA]
If you want to read these posts <a href="https://curtismchale.ca/membership">become a member</a>. Members get my <a href="https://curtismchale.ca/education">courses</a> included.
@curtismchale
curtismchale / woocommerce-stars.less
Created July 10, 2013 23:33
LESS for giving us star ratings in WooCommerce.
/* === star ratings === */
.woocommerce, .woocommerce-page{
.star-rating{
float: right;
overflow: hidden;
position: relative;
height: 1em;
line-height: 1em;
font-size: 1em;
@curtismchale
curtismchale / Three Wise Monkeys.md
Last active November 12, 2021 20:15 — forked from malarkey/Three Wise Monkeys.md
The NDA I use.

Date: [date]

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

Summary:

In short; neither of us will share any confidential information about each-other, by any means, with anyone else.

What’s confidential information?

@curtismchale
curtismchale / wordpress-gitignore
Created July 30, 2020 23:32
The basis for my .gitignore file in WordPress projects
config/app_config.yml
config/database.yml
config/*.sphinx.conf
config/s3_credentials.yml
*~
*.cache
*.log
*.pid
tmp/**/*
.DS_Store
@curtismchale
curtismchale / anne-pro-2-config.json
Last active July 1, 2020 17:48
Find my review of the Anne Pro 2 here: https://youtu.be/8FXVjCzzPgU
{"name":"Mac Curtis","device":1,"model":5,"type":"layout","data":{"layer0":[41,30,31,32,33,34,35,36,37,38,39,45,46,42,43,20,26,8,21,23,28,24,12,18,19,47,48,49,41,4,22,7,9,10,11,13,14,15,51,52,40,225,29,27,6,25,5,17,16,54,55,56,229,224,226,227,44,227,192,193,228],"layer1":[53,244,243,60,61,62,63,173,171,172,168,170,169,0,0,0,82,0,0,0,0,0,82,0,70,74,77,0,0,80,81,79,0,0,0,80,81,79,75,78,0,0,0,0,0,0,0,0,0,0,73,76,0,0,0,0,0,0,192,193,0],"layer2":[0,200,201,202,203,0,0,0,246,241,240,244,243,0,0,0,82,0,0,0,0,0,82,0,70,74,77,0,0,80,81,79,0,0,0,80,81,79,75,78,0,0,0,0,0,0,0,0,0,0,73,76,0,0,0,0,0,0,192,193,0],"taps":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0,0,0,0,80,81,79]},"crc":"d4ee7910"}