Skip to content

Instantly share code, notes, and snippets.

@kyleboehlen
kyleboehlen / erlangc.vb
Last active May 6, 2025 02:28
ErlangC WFM functions for Excel (VBA)
'Developed by Kyle Boehlen
'At Ken Garff SCC
'Last Updated 6/27/17 by Kyle Boehlen
'Contains all of the erlang functions needed such as Sigma, Factorial, SigmaFactorialLoop, ErlangC, Service Level, Traffic Intensity, and agents needed.
Function Factorial(ByVal n As Double) As Double
'Variable for answer
Dim dblAnswer As Double
@kyleboehlen
kyleboehlen / product-options-linked.liquid
Created December 22, 2021 19:36
Shopify Hide Unavailable Variants
<script>
// (c) Copyright 2016 Caroline Schnapp. All Rights Reserved. Contact: [email protected]
// See https://docs.shopify.com/themes/customization/navigation/link-product-options-in-menus
// Modified by Jonathan Moore (Style Hatch) https://github.com/jonathanmoore
/*
Updated to work with sectioned themes
- Added required methods from the deprecated options_selection.js
- Triggers an initial variant change
- Hides sold out variants with only one option