Skip to content

Instantly share code, notes, and snippets.

View mlteal's full-sized avatar
🦄
Writing code

Maura Teal mlteal

🦄
Writing code
View GitHub Profile
alias no='printf "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▄▄███░░░░░\n░░▄▄░░░░░░░░░░░░░░░░░░░░░░░░░███████░░░░\n░░███▄░░░░░░░░░░░░░░░░░░░░░▄█████▀░█░░░░\n░░▀█████▄▄▄▄▀▀▀▀▀▀▀▀░▄▄▄▄▄███▀▀░▀███░░░░\n░░░░███▀▀░░░░░░░░░░░░░░▀▀▀███░░░░██▀░░░░\n░░░░██░░░░░░▄░░░░░░░░░░░░░░░▀▀▄▄███░░░░░\n░░░░▄█▄▄████▀█░█▄██▄▄░░░░░░░░░████▀░░░░░\n░░░▄████████░░░██████▄▄▄▄░░░░░████░░░░░░\n░░░███░█░▀██░░░▀███░█░░███▄▄░░░░▀█░░░░░░\n░░░████▄███▄▄░░░███▄▄▄█████▀░░░░░██░░░░░\n░░▄████▀▀░▀██▀░░░▀█████████░░░░░░██░░░░░\n░░▀███░░░▄▄▀▀▀▄▄░░░░▀██████░░░░░░░█░░░░░\n░░░███░░█░░░░░░░▀░░░░▀███▀░░░░░░░░█░░░░░\n░░░████▄▀░░░░░░░░▀░░░████▄░░░░░░░░░█░░░░\n░░░██████▄░░░░░░░░░▀▀████▀░░░░░░░░░█░░░░\n░░▄█████████▀▀▀▀░░░░░░░░░░░░░░░░░░░▀█░░░\n░░███████████▄▄▄▄░░░░░░░░░░░░░░░░░░░█▄░░\n░░████████▀▀▀▀▀▀░░░░░░░░░░░░░░░░░░░░░█▄░\n░░████████▄▄░░░░░░░░░░░░░░░░░░░░░░░░░░█░\n░▄███████▄▄░░░░░░░░░░░░░░░░░░░░░░░░░░░░█\n░▀▀▀▀▀▀▀▀▀█▀▀▀░░░░░░░░░░░░░░░░░░░░░░░░░█\n░░██░░░░██░░▄▄█████▄▄░░██████▄░███████░░\n░░███▄░░██░▄██▀░░░▀██▄░██░░░▀████░░░░░░░\n░░█████░█████░░░░░░░█████░░▄▄████▄▄▄▄▄░░
<?php
/**
* Function remove_action_by_class
* Used to remove notices and nags or other class actions added with class instances (unable to remove with remove_action)
*
* @param $hook_name
* @param $class_and_function_list
* @param int $priority
@mlteal
mlteal / circle.yml
Created September 6, 2017 17:55
Pared down CircleCI yml file (for Circle v1.0)
machine:
php:
version: 7.0.4
environment:
WP_TESTS_DIR: /tmp/wordpress-tests-lib
WP_CORE_DIR: /tmp/wordpress/
PATH: $HOME/.composer/vendor/bin:$PATH
dependencies:
pre:
@mlteal
mlteal / circle.yml
Created September 3, 2017 03:12
Initial CircleCI yml file for running phpunit and wpcs/phpcs
machine:
php:
version: 7.0.4
environment:
WP_TESTS_DIR: /tmp/wordpress-tests-lib
WP_CORE_DIR: /tmp/wordpress/
PATH: $HOME/.composer/vendor/bin:$PATH
dependencies:
pre:
@mlteal
mlteal / ml-disable-pings.php
Created July 13, 2016 18:02
Remove the do_pings action
<?php
/*
Plugin Name: Disable Pings
Plugin URI: http://fansided.com
Description: Remove the do_pings action
Version: 0.1
Author: Maura Teal
Author URI: http://fansided.com
License: GPL
*/
/* Font Awesome icons
*
* More easily reference Font Awesome icons without needing to use @extends or use the actual classes in the markup.
* Icons are current as of Font Awesome v4.3.0
*
* Ex: @include fa-icon( 'chevron-down' );
*
* @param $icon the name of the icon excluding the fa- prefix
* @param $styles when set to true includes the recommended FA styles, false just applies font-family
* @param $position by default set to false which means the mixin needs to be used within a pseudo element