Skip to content

Instantly share code, notes, and snippets.

View Accudio's full-sized avatar

Alistair Shepherd Accudio

View GitHub Profile
@Accudio
Accudio / main.js
Last active August 25, 2025 11:18
Shopify + Laravel Mix + Async Alpine for dynamic imports
/**
* This is added to your `main.js` file, the one that imports and runs Async Alpine. Make sure that
* it runs before any `import()` functions by putting as high as possible. That may mean adding it to
* a static import if your other static imports dynamically import immediately.
*/
__webpack_public_path__ = window.assetsPath;
/**
* If you want to automatically register all components within a certain directory as async, you can do
* that with `require.context()` and the fourth param as 'weak'. Add this to your main.js file and
@Accudio
Accudio / Code.gs
Last active August 1, 2026 08:10
Custom Google Calendar → Slack Status sync using a Google Apps Script and the Slack API
const CALENDAR_ID = "<CALENDAR_ID>";
const SLACK_TOKEN = '<SLACK_USER_TOKEN>'
const SLACK_USER = '<SLACK_USER_ID>'
/**
* Key passed from event filter, array including Slack Emoji and Status Text
* 'key': [ 'emoji', 'text' ]
*/
const statuses = {
'none': ['', ''],
@Accudio
Accudio / code.mmd
Created May 15, 2026 11:45
Score Bulk Ordering ERD using Mermaid.js
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Accudio
Accudio / 1-README.md
Last active August 13, 2026 16:33
MOCAP Templating Demo

Mocap Templating demo

Files

  • 2-product-card.liquid — the source component.
  • 3-products.json — example data for four products.
  • 4-product-card.html — static output of the template for one product.
  • 5-collection.html — a full page (header, 12 cards, footer).