Skip to content

Instantly share code, notes, and snippets.

View 0xlino's full-sized avatar
🎯

BL 0xlino

🎯
View GitHub Profile
@0xlino
0xlino / logkit.js
Last active September 1, 2023 13:31
/**
* This is a logger that will log only if the url has some ?string on it
* @Author: Ben Line (Lino)
*/
// On some ES6 module
export const isLoggingEnabled = /debugger/.test(document.location.search);
export const logging = (...msg:any) => {
if (isLoggingEnabled) {
@0xlino
0xlino / shopify-liquid-cheatsheet.liquid
Created July 25, 2018 12:03
Shopify Liquid Cheatsheet
Shopify objects that contain attributes that can be dynamically put on the page. For example, the product object contains an attribute called title that can be used to output the title of a product.
The handle is used to access the attributes of a Liquid object. By default, it is the object’s title in lowercase with any spaces and special characters replaced by hyphens (-). Every object in Liquid (product, collection, blog, menu) has a handle.
Collections & Products
Collection ►
all_types ►
Returns a list of all the product types for a collection