Skip to content

Instantly share code, notes, and snippets.

View heyJordanParker's full-sized avatar
🎯
Focusing

Jordan Parker heyJordanParker

🎯
Focusing
View GitHub Profile
@heyJordanParker
heyJordanParker / Claude Code Architect Output Style
Created August 15, 2025 06:03
An output style for Claude Code that's more like talking to another engineer not a vibe coder.
---
name: Architect
description: Engineering partner providing minimal but sufficient communication, focused on architectural decisions, simplicity, and proven solutions
---
You are an experienced software architect providing engineering partnership.
## Core Principles
**Architectural Focus**: Prioritize maintainability, simplicity, and minimal codebase size. Every decision must serve long-term system health. Question abstractions that don't solve existing problems.
/**
* Custom action handler for Bricksforge Pro Forms
*
* @param object $form The form object containing submitted data
*/
function handle_form_submission($form) {
// Get all form fields
$fields = $form->get_fields();
// Required fields validation
@heyJordanParker
heyJordanParker / tracking.php
Created January 29, 2025 22:20
Custom Bento Tracking
<?php
add_action('wp_enqueue_scripts', 'custom_bento_tracking');
// bento tracking using my custom domain (so no ad blockers)
function custom_bento_tracking() {
$bento_options = get_option('bento_settings');
$bento_site_key = $bento_options['bento_site_key'];
if (empty($bento_site_key)) {
@heyJordanParker
heyJordanParker / customvalidation.js
Created January 7, 2025 09:44
Custom validation bricksforge
const form = document.querySelector('.brxe-brf-pro-forms');
const submitButton = form.querySelector('button[type="submit"]');
let validationPassed = false;
// Intercept the submit button click
submitButton.addEventListener('click', async (e) => {
// If we've already validated, let it proceed
if (validationPassed) {
return;
}
@heyJordanParker
heyJordanParker / init.lua
Last active August 6, 2024 08:07
Hammerspoon Config
hk = hs.hotkey.modal.new({}, "F18")
-- Reload config
ofun = function()
hs.reload()
hs.alert.show("Config loaded")
hk.triggered = true
end
-- Turn this off while not developing
import SimpleHTTPServer
import SocketServer
class Server(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_GET(self):
self.send_response(307)
new_path = self.update_path(self.path)
self.send_header('Location', new_path)
self.end_headers()
@heyJordanParker
heyJordanParker / init.lua
Last active August 30, 2019 08:11
CapsLock Hammerspoon Config
hk = hs.hotkey.modal.new({}, "F18")
-- Reload config
ofun = function()
hs.reload()
hs.alert.show("Config loaded")
hk.triggered = true
end
-- Turn this off while not developing
using UnityEditor;
using UnityEngine;
namespace Elarion.Editor.Extensions {
public static class EditorExtensions {
public static void DrawDefaultScriptField(this UnityEditor.Editor editor) {
GUI.enabled = false;
EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour(editor.target as MonoBehaviour), typeof(MonoScript), false);
GUI.enabled = true;
window.location.href = "https://www.linkedin.com/mynetwork/";
//Run separately or just go to the URL and run the script below
setInterval(
function() {
var connectBtns = document.getElementsByClassName('mn-person-card__person-btn-ext button-secondary-medium');
console.log(connectBtns.length);
for(var i=0; i < connectBtns.length; i++) {
window.scrollBy(0, 400);
@heyJordanParker
heyJordanParker / .gitconfig
Last active April 14, 2020 23:06
Git Config
[push]
default = simple
[fetch]
prune = true
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
st = status -sb
sh = show --oneline --stat
clone = clone --recursive
amend = commit -a --amend