Skip to content

Instantly share code, notes, and snippets.

@bdnorris
bdnorris / SKILL.md
Created November 4, 2026 19:25
Agent Skill for ACF Field Creation (acf-from-prompt)
name acf-from-prompt
description Registers ACF fields from a natural-language prompt. Field creation only — no templates, CSS, or JS. Use when the user asks for a new ACF field, field group, flexible-content layout, repeater, taxonomy field, or CPT fields; or pastes a shorthand schema like "Headline: text / Items: repeater - Question: text - Answer: wysiwyg".
@bdnorris
bdnorris / filter-app.vue
Created October 6, 2026 00:03
Filter logic to Share
let filteredItems = computed(() => {
// if no filters are selected, return all items
if (activeFilters.value.length === 0) {
return items;
} else {
// filter items by selected filters
// within a group filters are OR, between groups filters are AND
let itemIDAccumulator: Array<any> = [];
filterGroups.value.forEach((group: FilterGroup) => {
let groupitemIds: Array<number> = [];
@bdnorris
bdnorris / Leaf.vue
Created October 5, 2026 14:33
SVG leaves that populate an SVG tree, each indicating a recognized employee
<script>
import { computed, ref } from "vue";
import { onMounted } from "vue";
import gsap from "gsap";
export default {
props: {
trait: {
type: String,
@bdnorris
bdnorris / AGENTS.md
Last active October 4, 2026 00:15
AGENTS.md for Front-end (CSS)

AGENTS.md

General front-end guidance for this repo. Project-specific details (commands, environments, quirks) live in the README or in a nested AGENTS.md.

Before You Start

  • Read the existing code in the area you're changing and match its patterns.
  • Follow the repo's language choice. If it's TypeScript, write TypeScript and respect the existing tsconfig strictness. If it's JavaScript, don't convert files to TypeScript.
  • Use the repo's formatter and linter configs (Prettier, ESLint, Stylelint). Don't override or disable rules to get past an error.
  • Keep changes scoped to the task. Don't refactor or reformat unrelated code.
@bdnorris
bdnorris / AGENTS.md
Last active October 4, 2026 00:15
AGENTS.md for Front-end (Sass)

AGENTS.md

General front-end guidance for this repo. Project-specific details (commands, environments, quirks) live in the README or in a nested AGENTS.md.

Before You Start

  • Read the existing code in the area you're changing and match its patterns.
  • Follow the repo's language choice. If it's TypeScript, write TypeScript and respect the existing tsconfig strictness. If it's JavaScript, don't convert files to TypeScript.
  • Use the repo's formatter and linter configs (Prettier, ESLint, Stylelint). Don't override or disable rules to get past an error.
  • Keep changes scoped to the task. Don't refactor or reformat unrelated code.
@bdnorris
bdnorris / navigation.php
Created July 21, 2023 16:08
WordPress filter to replace top level menu items with buttons
<?php
function edit_menu_item($item_output, $item) {
if ( in_array('menu-item-has-children', $item->classes) ) {
return '<button type="button" aria-expanded="false" id="' . $item->title . '-' . $item->ID . '">'.$item->title.'</button>';
}
return $item_output;
}
add_filter('walker_nav_menu_start_el','edit_menu_item', 10, 2);
@bdnorris
bdnorris / keybase.md
Last active February 4, 2019 14:49
keybase.md

Keybase proof

I hereby claim:

  • I am bdnorris on github.
  • I am bnorris (https://keybase.io/bnorris) on keybase.
  • I have a public key whose fingerprint is FF38 9A67 5733 F9CF ADF5 7E3B D976 EA95 C5F2 1278

To claim this, I am signing this object: