Skip to content

Instantly share code, notes, and snippets.

Avatar

David A. Kennedy davidakennedy

View GitHub Profile
@davidakennedy
davidakennedy / feed.xml
Created Jul 22, 2020
davidakennedy.com feed
View feed.xml
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>David A. Kennedy</title>
<subtitle>Inclusive Design, Open Source and Life.</subtitle>
<link href="https://davidakennedy.com/feed/" rel="self"/>
<link href="https://davidakennedy.com/"/>
<updated>2020-07-21T21:14:23-00:00</updated>
<id>https://davidakennedy.com/</id>
<author>
@davidakennedy
davidakennedy / a11y-theme-review.txt
Created Feb 14, 2016
A collection of review template responses for WordPress theme reviews.
View a11y-theme-review.txt
Hi there!
Thanks for creating a WordPress theme and submitting it to the WordPress.org directory! Since your theme also includes the accessibility-ready tag, I've also reviewed it according to those requirements, which you can find here: https://make.wordpress.org/themes/handbook/review/accessibility/
Required
Anything in this section will need to be fixed before the theme can be approved.
Keyboard Navigation
@davidakennedy
davidakennedy / humans.txt
Created Aug 14, 2015
A set of .txt files to start with in projects.
View humans.txt
# humanstxt.org/
# The humans responsible & technology colophon
# TEAM
<name> -- <role> -- <twitter>
# THANKS
<name>
@davidakennedy
davidakennedy / index.html
Created Aug 14, 2015
A starter HTML file.
View index.html
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
@davidakennedy
davidakennedy / .jshintrc
Last active Aug 29, 2015
A Gulp setup for all your WordPress/Gulp project needs.
View .jshintrc
{
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"es3": true,
"expr": true,
"immed": true,
"noarg": true,
"onevar": true,
@davidakennedy
davidakennedy / .jshintrc
Last active Aug 29, 2015
A Gulp setup for all your Gulp project needs.
View .jshintrc
{
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"es3": true,
"expr": true,
"immed": true,
"noarg": true,
"onevar": true,
@davidakennedy
davidakennedy / forgetful-git-commands.md
Created Sep 22, 2013
Git commands I always forget.
View forgetful-git-commands.md

Forgetful Git commands

Delete a local branch.

git branch -d <branchname>

Delete a remote branch.

git push origin :<branchname>

View custom-post-type-sitemap-example.php
<h2 id="my-post-type">My Post Type</h2>
<ul>
<?php
$terms = get_terms( 'my_taxonomy', 'orderby=name' );
foreach ( $terms as $term ) {
echo '<li><h3>' . $term->name . '</h3>';
echo '<ul>';
$args = array(
'post_type' => 'my_post_type',
'posts_per_page' => -1,
You can’t perform that action at this time.