Skip to content

Instantly share code, notes, and snippets.

View notasausage's full-sized avatar
👨‍💻
Design + Code

Patrick Haney notasausage

👨‍💻
Design + Code
View GitHub Profile
@notasausage
notasausage / resume.json
Last active November 5, 2019 00:25
JSON Resume
{
"basics": {
"name": "Patrick Haney",
"label": "UX Designer & Front-End Developer",
"picture": "",
"email": "patrick@hanerino.com",
"phone": "",
"website": "http://patrickhaney.com",
"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": {
@notasausage
notasausage / force-wpengine-ssl.php
Created March 22, 2019 15:02
Force WP Engine 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
notasausage / wp-block-editor-full-width.php
Last active February 6, 2019 21:15
WordPress plugin to force the Gutenberg block editor to be wider (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: http://patrickhaney.com
* Version: 1.0.0
* Text Domain: block_editor_full_width
* License: GPL2+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@notasausage
notasausage / wp-custom-image-sizes.php
Last active June 28, 2024 00:32 — 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.
<?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
notasausage / get_twitter_avatar.php
Last active December 20, 2015 10:30 — forked from banksy89/gist:3334259
Return the profile image (avatar) of a Twitter user using their RSS feed (no API call necessary).
<?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";