Skip to content

Instantly share code, notes, and snippets.

View jbrinley's full-sized avatar

Jonathan Brinley jbrinley

View GitHub Profile
@johnbillion
johnbillion / wp_mail.md
Last active June 3, 2024 13:31
WordPress Emails

WordPress Emails

This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.

This documentation has moved here: https://github.com/johnbillion/wp_mail

@Ahrengot
Ahrengot / sass-easing-functions.scss
Created September 18, 2014 20:24
Sass easing functions
$ease-in-sine: cubic-bezier( 0.47, 0, 0.745, 0.715 );
$ease-out-sine: cubic-bezier( 0.39, 0.575, 0.565, 1 );
$ease-in-out-sine: cubic-bezier( 0.445, 0.05, 0.55, 0.95 );
$ease-in-quad: cubic-bezier( 0.55, 0.085, 0.68, 0.53 );
$ease-out-quad: cubic-bezier( 0.25, 0.46, 0.45, 0.94 );
$ease-in-out-quad: cubic-bezier( 0.455, 0.03, 0.515, 0.955 );
$ease-in-cubic: cubic-bezier( 0.55, 0.055, 0.675, 0.19 );
$ease-out-cubic: cubic-bezier( 0.215, 0.61, 0.355, 1 );
@GianlucaGuarini
GianlucaGuarini / post-merge
Last active August 22, 2023 20:54 — forked from sindresorhus/post-merge
Git hook that gets triggered after any 'git pull' whenever one of the files specified has changed. Useful to update any web application dependency using bower npm or composer
#/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# forked by Gianluca Guarini
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep -E --quiet "$1" && eval "$2"
}
@brasofilo
brasofilo / old-upload-method.php
Last active October 5, 2018 18:11
Replace the New WP 3.5 Uploader with the Old Thickbox
<?php
/**
* Plugin Name: Old Upload Method
* Plugin URI: http://wordpress.org/support/topic/is-there-a-way-to-disable-the-new-media-manager
* Description: Replace the new media upload with the old thickbox
* Author: A.Morita, brasofilo
* Version: 1.2
* License: GPLv2 or later
*
@markjaquith
markjaquith / gist:2653957
Created May 10, 2012 15:36
WordPress Fragment Caching convenience wrapper
<?php
/*
Usage:
$frag = new CWS_Fragment_Cache( 'unique-key', 3600 ); // Second param is TTL
if ( !$frag->output() ) { // NOTE, testing for a return of false
functions_that_do_stuff_live();
these_should_echo();
// IMPORTANT
$frag->store();
// YOU CANNOT FORGET THIS. If you do, the site will break.