Skip to content

Instantly share code, notes, and snippets.

@paulmist
paulmist / example.php
Created February 13, 2025 11:39 — forked from Pebblo/example.php
This function sets the Registration CSV report to only export primary registrants.
<?php //Please do not include the opening PHP tag if you already have one
function tw_ee_only_export_primary_registrants($reg_csv_array, $reg_row) {
//Only export the primary registrants
if( $reg_row['Registration.REG_count'] !== '1' ) {
return array();
}
//Include the REG_Group_Size column so you can see how many tickets purchased.
@paulmist
paulmist / wp-autopopulate-taxonomy
Created July 8, 2022 08:43 — forked from brenna/wp-autopopulate-taxonomy
WordPress function to auto-populate a taxonomy with a custom post type's entries.
function custom_tax_init(){
//set some options for our new custom taxonomy
$args = array(
'label' => __( 'My Custom Taxonomy' ),
'hierarchical' => true,
'capabilities' => array(
// allow anyone editing posts to assign terms
'assign_terms' => 'edit_posts',
/* but you probably don't want anyone
@paulmist
paulmist / 0_reuse_code.js
Created May 16, 2016 07:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@paulmist
paulmist / trello-to-newsletter.py
Created January 25, 2016 19:56 — forked from jefftriplett/trello-to-newsletter.py
Trello to Newsletter builder
"""
Trello to Newsletter builder
This is heavily inspired by: https://changelog.com/trello-as-a-cms/
To install:
pip install click cached_property markdown py-trello
To run:
export TRELLO_APP_KEY=''
@paulmist
paulmist / HSBC.js
Created August 15, 2013 20:24 — forked from benjie/HSBC.js
/******************************
HSBC Personal Statement to CSV
v0.5
Copyright: Benjie Gillam (2012)
License: WTFPL v2.0 ( http://en.wikipedia.org/wiki/WTFPL )
Instructions:
Add the following bookmarklet to your browser:
@paulmist
paulmist / gist:1159156
Created August 20, 2011 14:14 — forked from Wilto/gist:1107253
Example Fade-y Slideshow Thing
.faderotate {
height: 250px;
position: relative;
width: 100%;
}
.faderotate .slide {
left: 0;
position: absolute;
top: 0;