Skip to content

Instantly share code, notes, and snippets.

Design + Code

Patrick Haney notasausage

Design + Code
Block or report user

Report or block notasausage

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
View resume.json
"basics": {
"name": "Patrick Haney",
"label": "UX Designer & Front-End Developer",
"picture": "",
"email": "",
"phone": "",
"website": "",
"summary": "Patrick Haney is not a sausage. He’s a UX Designer & Front-End Developer, an instructor at RIT’s School of Design, and an accomplished conference speaker.",
"location": {
View force-wpengine-ssl.php
* Plugin Name: Force WP Engine SSL
* Description: Prevent WP Engine's Staging & Development environments from loading via http
* Version: 1.0
* Author: Patrick Haney
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 2, as published by the
* Free Software Foundation. You may NOT assume that you can use any other
notasausage / wp-block-editor-full-width.php
Last active Feb 6, 2019
WordPress plugin to force the Gutenberg block editor to be wider (full width).
View wp-block-editor-full-width.php
* Plugin Name: Block Editor Full Width
* Description: Fix the Gutenberg block editor width to the full window (with a max-width)
* Author: Patrick Haney
* Author URI:
* Version: 1.0.0
* Text Domain: block_editor_full_width
* License: GPL2+
* License URI:
notasausage / wp-custom-image-sizes.php
Last active Feb 6, 2019 — forked from iftee/wp-remove-default-image-sizes.php
Filter to remove default image sizes (WordPress & WooCommerce) from your theme and add custom image sizes instead.
View wp-custom-image-sizes.php
* WordPress filters to remove default image sizes and add custom sizes.
* Replace PREFIX with your theme's prefix as necessary.
* Regenerate thumbnails after adding this to your theme's functions.php file.
// This function unsets the default image sizes
function PREFIX_remove_default_image_sizes( $sizes ) {
notasausage / get_twitter_avatar.php
Last active Dec 20, 2015 — forked from banksy89/gist:3334259
Return the profile image (avatar) of a Twitter user using their RSS feed (no API call necessary).
View get_twitter_avatar.php
function getTwitterAvatar( $username, $size = "normal" ) {
// mini = 24px, normal = 48px, bigger = 73px
$sizes = array( "mini", "normal", "bigger" );
// Check for size, default to normal
if( in_array( $size, $sizes ) ) {
$variant = $size;
} else {
$variant = "normal";
You can’t perform that action at this time.