Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View stvnrynlds's full-sized avatar
🤖
beep boop bop

Steven Reynolds stvnrynlds

🤖
beep boop bop
View GitHub Profile
{% assign other_tracking_url = "https://www.google.com/=" %}
{% if billing_address.name %}
<p>Dear {{ billing_address.name }},</p>
<p></p>
{% endif %}
<p>{% if fulfillment.item_count == item_count %}All{% elsif fulfillment_status == 'fulfilled' %}The last{% else %}Some{% endif %} of the items from order {{ name }} have now been shipped:</p>
<p>{% for line in fulfillment.fulfillment_line_items %}<img src="{{ line.line_item | img_url: 'small' }}" />{{ line.quantity }}x {{ line.line_item.title }}<br>
{% endfor %}</p>
<p>{% if requires_shipping %}They are being shipped {% if fulfillment.tracking_company %}via {{ fulfillment.tracking_company }} {% endif %}to the following address: </p>
@stvnrynlds
stvnrynlds / menus-api.liquid
Last active January 19, 2022 14:46
Shopify LinkList API Workaround
{%- layout none -%}
{%- assign listParams = request.path | replace: page.url, "" | remove: "/" | split: '+' -%}
{% if listParams != empty %}
{
{% for param in listParams -%}
{%- assign getList = linklists[param] -%}
{%- if getList != empty %}
"{{ param }}": [{% for level1 in getList.links %}{
"id": "{{ level1.title | handle }}-{{ forloop.index0 }}",
@stvnrynlds
stvnrynlds / linklist.liquid
Created April 15, 2019 13:58 — forked from Bat-Chat/linklist.liquid
getting linklist json in shopify through liquid
@stvnrynlds
stvnrynlds / README.md
Last active November 5, 2018 22:01 — forked from DirtyF/README.md
Setup ruby with brew and rbenv

First, make sure you have command line tools installed:

xcode-select --install

Then open Terminal.app and type:

curl https://gist.githubusercontent.com/stvnrynlds/ce4999d3175bf41ff083d5e4665ab382/raw/085b17e1fb8bc00bbc408a4ccb2b808a5e3b0f15/setup-rbenv.sh | bash
<!-- /templates/product.liquid -->
{% comment %}
Rich snippets (itemscope, itemtype, etc.) for products are a theme requirement,
and allow search engines to easily understand what the content is.
For more information on these Scheme.org tags, visit:
- http://schema.org/docs/gs.html
{% endcomment %}
@stvnrynlds
stvnrynlds / meritBadges.json
Last active September 5, 2017 20:09
Scout Ranks, Badges, and Awards
[
{
"id": "001",
"name": "Camping",
"eagleRequired": true
},
{
"id": "002",
"name": "Citizenship in the Community",
"eagleRequired": true
@stvnrynlds
stvnrynlds / arrayish.js
Last active August 30, 2017 15:56
Fun with array-like objects
function nodeListToArray(nodeList) {
return [].slice.call(nodeList);
}
@stvnrynlds
stvnrynlds / the-canon-chapters.json
Last active January 30, 2017 18:51 — forked from russianryebread/bible_books.json
Books of the biblical canon with chapters
{
"OT": {
"Genesis" : 50,
"Exodus" : 40,
"Leviticus" : 27,
"Numbers" : 36,
"Deuteronomy" : 34,
"Joshua" : 24,
"Judges" : 21,
"Ruth" : 4,
@stvnrynlds
stvnrynlds / the-canon-nt.json
Last active January 30, 2017 22:51
Biblical Canon in JSON
[
{
"id": "matthew",
"title": "The Gospel According to Matthew",
"author": "Matthew",
"tags": ["nt", "gospel", "synoptic"]
}, {
"id": "mark",
"title": "The Gospel According to Mark",
"author": "Mark",
@stvnrynlds
stvnrynlds / uri.js
Created November 28, 2016 21:33 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"