Skip to content

Instantly share code, notes, and snippets.

View panoply's full-sized avatar
🥛
Rich in the hood

ΝΙΚΟΛΑΣ panoply

🥛
Rich in the hood
View GitHub Profile
export default {
AL: {
continentCode: 'EU',
countryCode: 'AL',
countryFlag: 'https://brixtol.cloud/flags/flag_al.svg',
countryName: 'Albania',
currencySymbol: 'L',
currencyCode: 'ALL',
currencyPlacement: '# !',
currencyRate: 12.0045,
@panoply
panoply / syncify-schema-store.json
Last active January 12, 2022 20:12
Syncify Schema Store
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "syncify",
"version": 1.1,
"definitions": {
"options": {
"type": "object",
"description": "Syncify Configuration options for Shopify theme development.",
"required": ["stores"],
"additionalProperties": false,
@panoply
panoply / syncify.json
Created January 12, 2022 20:09
Example of Syncify configuration
{
"stores": [
{
"domain": "store-1",
"themes": {
"dev": 129457717489,
"prod": 129457717489,
"stage": 129457717489,
"test": 129457717489
}
@panoply
panoply / centra.d.ts
Last active January 29, 2024 10:41
Centra REST Defintions
/* -------------------------------------------- */
/* UTILITIES */
/* -------------------------------------------- */
type Primitive = (
| null
| undefined
| string
| number
| boolean
@panoply
panoply / ahlens.d.ts
Created September 7, 2021 12:53
Åhlens X Mirakl Typings
/**
* Fixed Array Lengths
*/
type Grow<T, A extends Array<T>> = (
(x: T, ...xs: A) => void
) extends (
(...a: infer X) => void
) ? X : never;
type GrowToSize<T, A extends Array<T>, N extends number> = {
@panoply
panoply / geoip.ts
Last active August 23, 2021 07:42
Netlify Function for GeoIP
import { Handler } from '@netlify/functions';
import { getCurrency } from '@brixtol/currency-codes';
import { getCountryName, ICountries } from '@brixtol/country-names';
import { getCurrencySymbol, ICurrencySymbols as ISymbols } from '@brixtol/currency-symbols';
import { getCurrencyPlacement, IPlacements } from '@brixtol/currency-symbol-placements';
/**
* GeoIP
*
* Returns Geographical IP information of webshop visitors.
import m from 'mithril'
import icon from 'icons'
import Footer from 'components/footer'
import Video from 'components/video'
import meta from 'utils/meta'
export default {
oncreate: (
{
<div
class="inner pt-3"
data-controller="header"
data-header-sticky-alpha-value=" {{- section.settings.sticky_opacity }}"
data-header-sticky-rgb-value=" {{- section.settings.sticky_bg | color_to_rgb }}"
data-header-sticky-value=" {{- section.settings.sticky }}"
data-sticky-container>
<div class="row jc-between">
<!-- Search -->
<div class="col d-none d-md-flex pl-1 pl-md-3">