Skip to content

Instantly share code, notes, and snippets.

View lawrencetaur's full-sized avatar

Lawrence Taur lawrencetaur

View GitHub Profile
body {
color: #212121;
font-family: "Helvetica Neue", "Calibri Light", Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
letter-spacing: 0.02em;
}
@inancgumus
inancgumus / xmlToJson.xslt
Created May 16, 2017 10:20
XML to JSON using XSLT
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="utf-8"/>
<xsl:template match="/*[node()]">
<xsl:text>{</xsl:text>
<xsl:apply-templates select="." mode="detect" />
<xsl:text>}</xsl:text>
</xsl:template>
@shopifypartners
shopifypartners / related-products-by-tag-handle.liquid
Last active July 29, 2019 10:25
Code for section which generates related products based on matching handles and tags - https://www.shopify.com/partners/blog/related-products
@lfjeff
lfjeff / serve_s3_images_from_own_domain.js
Created June 11, 2018 03:09
Serve S3 images from your own domain using Cloudflare worker
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
/**
* When we receive a request, fetch it from our S3 bucket
*
* For example, a request for:
* https://mydomain.com/images/castle01.jpg
* will be fetched from: