Skip to content

Instantly share code, notes, and snippets.

View gnikyt's full-sized avatar

Tyler King gnikyt

View GitHub Profile
@gnikyt
gnikyt / descriptionTransformer.jsx
Last active May 10, 2024 18:03
Shopify Checkout UI - Product description to React
import React from "react";
import { List, ListItem, TextBlock } from "@shopify/ui-extensions-react/checkout";
/**
* Represents open tag.
* @typedef {Object} OpenTag
* @property {number} start - Indicates the start position of the open tag.
* @property {number} end - Indicates the end position of the open tag.
* @property {string} name - Name of the tag.
* @property {string[]} classes - Classes of the tag.
@gnikyt
gnikyt / git_release_branches.py
Last active January 5, 2022 15:18
Creates release branches based upon tags present
##
## Example:
## [your-repo] $ python ../path/to/script/git_release_branches.py
##
import subprocess
import re
from typing import List, Dict
def get_branch_list() -> List[str]: