Skip to content

Instantly share code, notes, and snippets.

@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;