Skip to content

Instantly share code, notes, and snippets.

-- Aware turtle module that tracks location and provides movement methods
local Aware = {}
---Creates a new Aware turtle instance with location tracking and movement capabilities
---@return table instance A new turtle instance with the following methods:
---
--- Movement Methods:
---@field forward fun(distance?: number, canDig?: boolean): boolean Move forward by specified distance
---@field back fun(distance?: number, canDig?: boolean): boolean Move backward by specified distance
---@field up fun(distance?: number, canDig?: boolean): boolean Move up by specified distance
@z1haze
z1haze / passwordless-login-with-merge-basket.sh
Created January 29, 2024 16:31
passwordless-login-with-merge-basket.sh
#!/bin/bash
# Passwordless Login with Merge Basket!
# https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-login:authorizePasswordlessCustomer
# Client needs additional scope `sfcc.pwdless_login`.
set -euo pipefail
CODE='kv7kzm78'
ORG='f_ecom_zzrf_001'
CLIENT='d125886c-c45a-49f5-acf5-08e48617b66b'
SECRET=