Skip to content

Instantly share code, notes, and snippets.

View ahaywood's full-sized avatar

Amy Haywood Dutton ahaywood

View GitHub Profile
@ahaywood
ahaywood / BackTick_ACF.md
Last active August 29, 2015 13:56 — forked from JoelBesada/README.md
BackTick for Advanced Custom Fields

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
@ahaywood
ahaywood / BackTick_FoundationDocs.md
Last active August 29, 2015 13:56 — forked from JoelBesada/README.md
BackTick for Zurb Foundation Documentation

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
@ahaywood
ahaywood / BackTick_WP_Query.md
Last active August 29, 2015 13:56 — forked from JoelBesada/README.md
BackTick for WP Query

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
@ahaywood
ahaywood / BackTick_PHPMyAdmin.md
Last active August 29, 2015 13:56 — forked from JoelBesada/README.md
BackTick for PHPMyAdmin

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
@ahaywood
ahaywood / BackTick_Laravel.md
Last active August 29, 2015 13:57 — forked from JoelBesada/README.md
Backtick for Laravel Documentation

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
@ahaywood
ahaywood / arrow.scss
Created June 5, 2014 02:15
SASS: Arrow Mixin
// REFERENCE http://css-tricks.com/snippets/css/css-triangle/
@mixin arrow ($direction, $size, $color) {
@if $direction == up {
border-left: $size solid transparent;
border-right: $size solid transparent;
border-bottom: $size solid $color;
} @else if $direction == down {
border-left: $size solid transparent;
border-right: $size solid transparent;
border-top: $size solid $color;
@ahaywood
ahaywood / comments.php
Created August 24, 2014 13:37
PHP - WP: Comments
<div class="cancel-comment-reply">
<?php cancel_comment_reply_link(); ?>
</div>
<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
<p><?php _e('You must be','html5reset'); ?> <a href="<?php echo wp_login_url( get_permalink() ); ?>"><?php _e('logged in','html5reset'); ?></a> <?php _e('to post a comment.','html5reset'); ?></p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
@ahaywood
ahaywood / custom-post-types.php
Created September 13, 2014 14:08
PHP - WP: Custom Post Type Plugin
<?php
/*
Plugin Name: Custom Post Types
Plugin URI: http://www.amyhaywood.com/
Description: Declares a plugin that will create custom post types
Version: 1.0
Author: Amy Haywood Dutton
Author URI: http://www.ahhacreative.com/
*/
@ahaywood
ahaywood / evernote.applescript
Created December 9, 2014 22:24
Evernote / Hazel Apple Script
tell application "Evernote"
activate
create note from file theFile notebook {"!! INBOX"}
end tell
@ahaywood
ahaywood / blog-conditional.php
Created January 4, 2015 04:06
Blog - Conditional Statement
if (condition) {
# code...
}