Skip to content

Instantly share code, notes, and snippets.

View chris-geelhoed's full-sized avatar

Chris Geelhoed chris-geelhoed

View GitHub Profile
@chris-geelhoed
chris-geelhoed / ProductList.js
Created June 15, 2020 00:29
How to Paginate Results with Shopify's GraphQL API
import axios from 'axios'
import React from 'react'
import {
Stack,
Thumbnail,
TextStyle,
Card,
Pagination,
Spinner,
TextContainer
$g-max-column-width: 72px !default;
$g-max-column-width: 72px !default;
$g-max-column-width: 72px !default;
$g-max-column-width: 72px !default;
$g-max-column-width: 72px !default;
$g-max-column-width: 72px !default;
$g-max-column-width: 72px !default;
$g-max-column-width: 72px !default;
$g-max-column-width: 72px !default;
$g-max-column-width: 72px !default;
@chris-geelhoed
chris-geelhoed / pipeFunction.js
Last active March 2, 2020 23:23
Pipe Function
const pipe = (...fns) => input => {
return fns.reduce((output, fn) => fn(output), input)
}
const reverse = string => string.split('').reverse().join('')
const exclaim = string => `${string}!`
pipe(
reverse,
string => string.toUpperCase(),