Skip to content

Instantly share code, notes, and snippets.

View msigley's full-sized avatar
Ummm coffee

Matthew Sigley msigley

Ummm coffee
View GitHub Profile
@msigley
msigley / gist:7338024
Last active December 27, 2015 14:09 — forked from anonymous/gist:7337367
Dim strText As String
Dim i As Integer
Dim x As Integer
Dim LenTextLeft As Integer
Dim CriticalCounter As Integer
'Array for full sentences
Dim arrTextSentences() As String
'Array for arrays of words
Dim arrTextWords() As Variant
@msigley
msigley / functions.php
Created August 7, 2014 13:59
barebone custom post type
<?php
register_post_type( 'courses',
array(
'labels' => array(
'name' => __( 'Courses' ),
'singular_name' => __( 'Course' )
),
'public' => true,
'has_archive' => false,
'exclude_from_search' => true,
<?php
/*
Plugin Name: Simple Security
Plugin URI: https://github.com/msigley
Description: Simple Security for preventing comment spam and brute force attacks.
Version: 1.0.1
Author: Matthew Sigley
License: GPL2
*/
@msigley
msigley / shopp_customer_import_cli.php
Last active October 21, 2015 16:56
Shopp Customer Import from CSV CLI
<?php
/**
* WB-4091: Take input from CSV file and create WP/Shopp customers for them
* Should be invoked on the CLI to web timeouts
* Usage: ango_td_customer_import [filename]
*/
require "../../wp-content/plugins/untangle-store/cli_init.php";
/**************************
@msigley
msigley / OrderAfterDiscountsRates.php
Last active November 26, 2015 23:25
Shopp Shipping Order Rates based on sub total after discounts
<?php
/**
* Order Amount After Discounts Tiers
*
* Provides shipping calculations based on order amount ranges
*
* @author Jonathan Davis, Matthew Sigley
* @version 1.2
* @copyright Ingenesis Limited, 27 April, 2008
* @package shopp