Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Joe Dooley joedooley

🏠
Working from home
Block or report user

Report or block joedooley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@joedooley
joedooley / Contract Killer 3.md
Created Jul 14, 2019 — forked from jesgs/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer 3.md

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@joedooley
joedooley / Three Wise Monkeys.md
Created Jul 14, 2019 — forked from jesgs/Three Wise Monkeys.md
Three Wise Monkeys (NDA)
View Three Wise Monkeys.md

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?

@joedooley
joedooley / gforms-add-on-framework-example.php
Last active Jun 14, 2019
Append a dynamic_field_map field to Gravity Forms payment plugin feed.
View gforms-add-on-framework-example.php
<?php
namespace DevDesigns\DevDesignsStripeAchPlaid;
use GFForms;
use GFPaymentAddOn;
use DevDesigns\DevDesignsStripeAchPlaid\Updater\Licensing;
@joedooley
joedooley / SpringRole Verification
Last active Jun 12, 2019
Link GitHub account to SpringRole account.
View SpringRole Verification
afb8cdd65d760f1453e1b572e004b7d1cbbe154853febb022cda4eb7abf512c4c8f04c2a2edb7d554d0303ace3a375a93dda88c3e7f0cf469f30077f906fb8b6
@joedooley
joedooley / functions.php
Created Apr 30, 2019 — forked from tripflex/functions.php
WordPress Remove Filter (remove_filter converted to remove_class_filter) to remove Filter/Action without Class Object access. Works with WordPress 1.2+ (4.7+ support added 9-19-2016)
View functions.php
<?php
/**
* Make sure the function does not exist before defining it
*/
if( ! function_exists( 'remove_class_filter' ) ){
/**
* Remove Class Filter Without Access to Class Object
*
* In order to use the core WordPress remove_filter() on a filter added with the callback
@joedooley
joedooley / header.js
Created Apr 18, 2019
Toggles class and sets dynamic header height on CSS variable. Uses Intersection Observer API to target the site headers next element sibling.
View header.js
const addMarginTop = () => {
const siteHeader = document.querySelector('.site-header')
const siteHeaderHeight = window.getComputedStyle(siteHeader).getPropertyValue('height')
const siteHeaderSiblingEl = siteHeader.nextElementSibling
if (!siteHeader || !siteHeaderSiblingEl) {
return
}
siteHeaderSiblingEl.style.setProperty(`--header-height`, siteHeaderHeight)
@joedooley
joedooley / mailhog.php
Last active Nov 7, 2018
Route all WordPress email through MailHog.
View mailhog.php
<?php
/**
* Plugin Name: MailHog Config
* Description: Route all WordPress email through MailHog.
* Version: 1.0.0
*
* @package LuminFire\MailHog
* @since 1.0.0
* @author LuminFire
* @link https://luminfire.com/
@joedooley
joedooley / wp-config.php
Created Jun 19, 2018
Standardize on HTTPS for all Pantheon Environments
View wp-config.php
<?php
/**
* Require HTTPS across all Pantheon environments.
* Does not run during wp-cli requests.
*
* This will redirect all pantheon environments redirect to https.
*
* @link https://pantheon.io/docs/redirects/#redirect-to-https
*/
@joedooley
joedooley / gw-gravity-forms-manual-entries.php
Created Feb 8, 2018 — forked from spivurno/gw-gravity-forms-manual-entries.php
Gravity Wiz // Gravity Forms // Manual Entries
View gw-gravity-forms-manual-entries.php
<?php
/**
* Gravity Wiz // Gravity Forms // Manual Entries
*
* Create entries manually for Gravity Forms. Adds an "Add New" button next to the page title on all entry-related pages.
*
* @version 1.2
* @author David Smith <david@gravitywiz.com>
* @license GPL-2.0+
* @link http://gravitywiz.com/...
@joedooley
joedooley / gform_stripe_api_mode.php
Created Feb 5, 2018
Change Stripe API mode for targeted form.
View gform_stripe_api_mode.php
<?php
/**
* Filters the API mode for a specific form to 'test'.
*
* @param $api_mode string Either 'test' or 'live'
*
* @return string Returns 'test' for targeted form. Otherwise,
* will return the value for the $api_mode setting.
*/
You can’t perform that action at this time.