Skip to content

Instantly share code, notes, and snippets.

@tom-it
tom-it / Readme.md
Created December 11, 2018 22:24
Shopify Reorder Shipping rates

This shopify script is used on shopify+ Stores to reorder the shippingrates. (Great for using in combination with your custom shipping carrier service) (the first character of the shipping name should be a number (0..9)) then the script will reorder accordingly, and remove the first character

// An array of articles with their tags.
var articles = [
{title: "Introduction to Javascript Scope", tags: [ "Javascript", "Variables", "Scope"]},
{title: "Javascript Closures", tags: [ "Javascript", "Variables", "Closures"]},
{title: "A Guide to PWAs", tags: [ "Javascript", "PWA"]},
{title: "Javascript Functional Programming Examples", tags: [ "Javascript", "Functional", "Function"]},
{title: "Why Javascript Closures are Important", tags: [ "Javascript", "Variables", "Closures"]},
];
// A function that reduces the above array to an
@datchley
datchley / app.js
Last active September 20, 2022 01:22
"Getting Functional with Javascript" Blog post source files
/**
* Primary application logic for our Functional Programming blog example
* See related blog series at: http://www.datchley.name/tag/functional-programming/
* Version: 2.0
*/
// A simple, resuable comparison for '>='
function greaterThanOrEqual(a, b) {
return a >= b
}