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
.m-0 {
margin: 0 !important;
}
.m-1 {
margin: 0.25rem !important;
}
.m-2 {
margin: 0.5rem !important;
export interface BrowserContextSuggestions {
detected_values: {
/**
* An object informing of the the visitors country and 2 letter country code
*/
country: {
/**
* The 2 letter country code
*/
@panoply
panoply / zip.ts
Created April 26, 2023 13:47
Country Code to Accurate ZIP code (postcode) maps.
export default {
AD: 'AD501',
AE: '32222',
AF: '1001',
AG: '00000',
AI: '2640',
AL: '1001',
AM: '0001',
AO: '1001',
AR: '1010',
type Primitive = | null | undefined | string | number | boolean | symbol | bigint;
type LiteralUnion<LiteralType, BaseType extends Primitive,> = LiteralType | (BaseType & Record<never, never>);
export interface Shopify {
PaymentButton: {
init(): any
}
autoloadFeatures(param: any): any
/**
* Only show in Theme previews, it's a class instance, yuck.
{% if type == 'heading' %}
<div class="col-12 mt-{{ block.mt }} mb-{{ block.mb }} tc">
<h1 class="mb-4">
{{ block.title }}
</h1>
<h4 class="my-3 fc-dark-gray italic uncase">
{{ block.subtitle }}
</h4>
<div class="{{ block.fs }} {{ block.ta }}">
import { LiteralUnion, AnyCase } from '@brixtol/tsutils';
import { CountryCodes } from '@brixtol/country-names';
export interface ICurrencies {
/** Andorra (Euro) */
AD: 'EUR',
/** United Arab Emirates (UAE Dirham) */
AE: 'AED',
/** Afghanistan (Afghani) */
AF: 'AFN',
export interface IEndpoints {
/**
* Returns Ajax Cart
*/
get: '/cart.json',
/**
* Add a product to cart
*/
add: '/cart/add.js',
/**
@panoply
panoply / readme.md
Last active October 10, 2023 20:28
VSCode Liquid v4.0.0

UPGRADE GUIDE   –   vscode-liquid v4.0.0

Update the relating files to the structures found below, adjust where necessary. This update should not take longer than 1 minute for most users, it is just copy/paste unless you have some custom beautification rules, in that case you will need to re-apply them where required. Refer to the Release Notes for additional information and understanding.

Get support in the Discord Server if you run into any issues, I am here and I am human!

Updating the .liquidrc File

@panoply
panoply / carousel.ts
Created October 20, 2022 23:41
2kb Carousel