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 / zodDefaultInstance.ts
Last active March 21, 2024 09:31
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
@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 / tgEstimatesAndActuals_eng.xsl
Last active August 29, 2015 00:02
Proposed update to my EstimatesAndActuals stylesheet for ToDoList : https://github.com/abstractspoon/ToDoList_Resources/tree/master/Stylesheets
<?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