Skip to content

Instantly share code, notes, and snippets.

Avatar

Curtis McHale curtismchale

View GitHub Profile
View markentum jr wp dev.md

Job Title: WordPress Developer

Reports to: Director of Web Development

Position Summary: Applicant is expected to manage existing request tickets for partners and be involved in ongoing development efforts as we build out sites for partners.

Location: North America preferred. Most of the team is on EST or CST. Your direct manager would be on PST.

Required Experience

  • 1 - 3 years WordPress experience building sites in an agency setting or for clients
View custom_tax.php
<?php
// the wordpress loop starts
$terms = get_the_terms( get_the_id(), 'taxonomy_name' );
foreach( $terms as $term ){
$term_id = $term->id;
$term_description = $term->descripion;
@curtismchale
curtismchale / wordpress-gitignore
Created Jul 30, 2020
The basis for my .gitignore file in WordPress projects
View wordpress-gitignore
config/app_config.yml
config/database.yml
config/*.sphinx.conf
config/s3_credentials.yml
*~
*.cache
*.log
*.pid
tmp/**/*
.DS_Store
View trigger-add-to-team.php
<?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
View nexcess-trigger-base.php
<?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
*/
@curtismchale
curtismchale / nexcess-automatewoo-triggers-base.php
Created Jul 19, 2020
Base plugin for creating automate woo triggers
View nexcess-automatewoo-triggers-base.php
<?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
*/
@curtismchale
curtismchale / price-calc-woo-teams.php
Created Jul 2, 2020
Calculate total cost for number of seats in woocommerce for woocommerce teams plugin
View price-calc-woo-teams.php
<?php
/**
* Shows the user a total price for a product as they increaset the seats
*
* @author SFNdesgn, Curtis McHale
* @starting source https://alexanderdejong.com/wordpress/wp-tutorial/add-total-price-calculation-woocommerce-product-page-ajax/
*
* @global $woocommerce Big global for woo
* @global $product WC product global
View anne-pro-2-config.json
{"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"}
View bujo.md

The shortest way to say it is that I love a Bullet Journal because it defaults to NO. In traditional tools you have to explicitly decide to not take something with you in the future by eliminating it in the review process.

In contrast a bullet journal (or any analogue tool) automatically removes stuff from your list as you go. If you don't make a specific choice to move a task/project then it doesn't get moved. I find it's much easier to realize how unimportant things are because you don't feel like carrying it with you so you just leave it where it was. At most you may reference it in your index "threading" back to a previous notebook so you can easily find it if you need to.

Mostly, I helps me realize that some project is something that sounds good to do, but is not something I'm ever going to do because it feels like way too much work to carry forward.

When I used digital systems I'd default to looking at all those things until I actively killed them.

I think it brings clarity of thought and priority e

View blank-edit-link.html