Skip to content

Instantly share code, notes, and snippets.

View 0xlino's full-sized avatar
🎯

Ben Line 0xlino

🎯
View GitHub Profile
@0xlino
0xlino / logkit.js
Last active September 1, 2023 13:31
View logkit.js
/**
* 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) {
View keybase.md

Keybase proof

I hereby claim:

  • I am benwebdev on github.
  • I am benwebdev (https://keybase.io/benwebdev) on keybase.
  • I have a public key ASAN4Wh3toaY39nDH2jThoYYuvSW-447MjIAvCkGFnbs-Qo

To claim this, I am signing this object:

@0xlino
0xlino / shopify-liquid-cheatsheet.liquid
Created July 25, 2018 12:03
Shopify Liquid Cheatsheet
View shopify-liquid-cheatsheet.liquid
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