Skip to content

Instantly share code, notes, and snippets.

New
Added Cloudflare Workers as a deployment target, including account connection, token storage, provider-neutral deploy/status/history routes, GitHub Actions workflow generation, Wrangler config generation, and Cloudflare dashboard links
Added provider-neutral deployment services so repositories can track an active deployment provider and share deploy, status, history, promote, domain, and environment-sync flows across Vercel and Cloudflare
Added AI assistant modes for Agent, Plan, and Ask, with mode-aware tool access, plan artifact saving, and read-only planning/question workflows
Added workspace skill discovery and reading for .claude/skills and .phantomwp/skills, with built-in skills protected as read-only and custom workspace skills available for project guidance
Added richer preview inspector chat context so selected elements can be attached to AI chat with source files, source lines, component chains, classes, dimensions, text, outerHTML, and bounded source snippets
Added inline preview prompting from

The Ballad of Gary and the Website

A Tragicomedy in Five Stages


Stage 1: The Inspiration

Gary was a man who had never built a website, and by "never built a website" I mean his most ambitious internet activity was creating a MySpace page in

<?php
//send and display response data from an api or webhook
add_action('wpcf7_before_send_mail', 'send_to_api_webhook', 10, 3);
function send_to_api_webhook($contact_form, &$abort, $submission)
{
// replace your-subject with your form field
$get_input_user = $submission->get_posted_data('your-subject');
<?php
function wpcb_should_override_backorder( $product ) {
//Set the product categories in the array
$categories = array('cat-a', 'cat-b');
return has_term( $categories, 'product_cat' ) && $product->get_attribute('pa_attr-a');
}
<?php
add_action('wp', function () {
if (is_singular('page')) {
add_action('wp_head', function () {
$JS = <<<EOD
<script>
alert('test');
</script>
EOD;
@ovidiumght
ovidiumght / tz_to_utc_when_scheduling_posts.js
Last active May 28, 2021 18:46
Convert the time to UTC from the selected timezone when scheduling posts.
jQuery(document).ready(function () {
var tzs = [
'Europe/Andorra',
'Asia/Dubai',
'Asia/Kabul',
'Europe/Tirane',
'Asia/Yerevan',
'Antarctica/Casey',
'Antarctica/Davis',