Skip to content

Instantly share code, notes, and snippets.

View TonyGravagno's full-sized avatar
💭
Deep in code

Tony Gravagno TonyGravagno

💭
Deep in code
View GitHub Profile
@TonyGravagno
TonyGravagno / workaround_39423.php
Created October 16, 2023 23:05
Workaround for Gutenberg Issue 39423
<?php
/**
* Plugin Name: Workaround for Gutenberg Issue #39423
* Description: Override core until header block colors are fixed. <a href="https://github.com/WordPress/gutenberg/issues/39423">https://github.com/WordPress/gutenberg/issues/39423</a>
* Author: Tony Gravagno (<a href="https://profiles.wordpress.org/starbuck/">wordpress.org @starbuck</a>)
* License: MIT
*/
/**
@TonyGravagno
TonyGravagno / zodDefaultInstance.ts
Last active November 22, 2024 11:39
Create a default object from a Zod schema
import { z } from 'zod'
/**
* @summary Function returns default object from Zod schema
* @version 23.05.15.2
* @link https://gist.github.com/TonyGravagno/2b744ceb99e415c4b53e8b35b309c29c
* @author Jacob Weisenburger, Josh Andromidas, Thomas Moiluiavon, Tony Gravagno
* @param schema z.object schema definition
* @param options Optional object, see Example for details
* @returns Object of type schema with defaults for all fields
<?xml version="1.0" ?>
<!--
**************** TDL to Project Estimate with comparison to Actual Time Spent and Status ****************
Stylesheet for use with Tasklist Transform functionality of ToDoList by Dan Godson:
http://www.codeproject.com/Articles/5371/ToDoList
Stylesheet by Tony Gravagno (CodeProject ID: iamstarbuck)
Cloned and significantly modified from Project Summary.
All prior comments removed but credit to original authors:
- BOSC Laurent