Skip to content

Instantly share code, notes, and snippets.

View dbagley1's full-sized avatar

Darrian Bagley dbagley1

View GitHub Profile
@adamziel
adamziel / preprocess-wxr.php
Created June 6, 2024 15:02
A CLI utility to download all the WXR assets and rewrite their URLs
<?php
/**
* Rewrites URLs in a WXR file while keeping track of the URLs found.
*
* This is a huge deal! It unlocks fast, streamed, resumable, fault-tolerant
* WordPress data migrations through WXR files AND directly between sites.
*
* In particular, this script:
*
* * Lists all the URLs found in the XML document
@oooh-boi
oooh-boi / fluid H and text
Created September 27, 2022 13:20
Fluid Typography in Elementor
<style>
.elementor-kit-4 h1 { font-size: clamp(2.369rem, 2.0686rem + 1.502vw, 4.209rem); }
.elementor-kit-4 h2 { font-size: clamp(1.777rem, 1.5517rem + 1.1265vw, 3.157rem); }
.elementor-kit-4 h3 { font-size: clamp(1.333rem, 1.1639rem + 0.8457vw, 2.369rem); }
.elementor-kit-4 h4 { font-size: clamp(1.333rem, 1.2605rem + 0.3624vw, 1.777rem); }
.elementor-kit-4 h5 { font-size: clamp(1.2rem, 1.1783rem + 0.1086vw, 1.333rem); }
.elementor-kit-XXX { /* replace XXX with your own Site Settings kit ID */
--e-global-typography-XXXXXX-font-size: clamp(1.0625rem, 0.9707rem + 0.4592vw, 1.625rem); /* any custom font 1 ... replace XXXXXX with your own */
@michaelroper
michaelroper / tailwind-palettte-app.json
Last active January 19, 2024 23:19
Tailwind CSS default colors in Palettte.app's JSON format
[
{
"paletteName": "gray",
"swatches": [
{
"name": "100",
"color": "#f7fafc"
},
{
"name": "200",