Skip to content

Instantly share code, notes, and snippets.

Avatar
🥛
Rich in the hood

cаввидис panoply

🥛
Rich in the hood
View GitHub Profile
@panoply
panoply / _headers
Created Aug 26, 2020
Shopify Discounts API via Netlify functions
View _headers
/*
Access-Control-Allow-Origin: *
@panoply
panoply / api.js
Created Aug 26, 2020
Mithril Shopify Cart
View api.js
/* Modules */
import m from 'mithril'
import stream from 'mithril/stream'
export default class CartAPI {
stream = stream('')
constructor () {
View theme.html
<!doctype html>
<html lang="{{ shop.locale }}">
<head>
<meta charset="UTF-8">
<meta name="turbolinks-cache-control" content="no-preview">
<title>
{{- page_title -}}
{%- if current_tags -%}
View Hover.js
import m from 'mithril'
export default ({
lowStock,
remains,
name,
colour,
price,
pricing,
percent,
@panoply
panoply / readme.md
Last active Jul 10, 2020
Github Readme
View readme.md

I'm not a nerd like the rest of you.

Yes, you read that correctly.

@panoply
panoply / readme.md
Created Mar 30, 2020
Vanilla Components
View readme.md

Component List Component = Libraries, Modules, plugins etc

All credit and thanks goes to the maintainers of these libraries, y'all are the real MVP's up in here. Remember to star a project if you like it, creators need to know what they've released is appreciated.

UTILITIES

@panoply
panoply / locales.js
Created Mar 14, 2020
2 Letter country code mapped to currency code
View locales.js
export default {
EU: 'EUR',
AF: 'AFN',
AX: 'EUR',
AL: 'ALL',
DZ: 'DZD',
AS: 'USD',
AD: 'EUR',
AO: 'AOA',
AI: 'XCD',
@panoply
panoply / icons.rb
Last active Dec 16, 2019
Jekyll SVG icons and sprite
View icons.rb
module Jekyll
module Tags
class IconTag < Liquid::Tag
def initialize(tag_name, markup, tokens)
@markup = markup
super
end
@panoply
panoply / equal-width.md
Last active Sep 11, 2019
2 column full width table for github markdown
View equal-width.md

Equal widths

Github markdown full-width 2 column table.

You can’t perform that action at this time.