Skip to content

Instantly share code, notes, and snippets.

View CallumCarmicheal's full-sized avatar

Callum Carmicheal CallumCarmicheal

View GitHub Profile
@CallumCarmicheal
CallumCarmicheal / README.md
Last active January 4, 2025 16:43 — forked from mithicher/tom-select.blade.php
Tom Select Livewire Blade Component (Real time with changing item list)

Attributions

This is a heavily modified version of the original code by mithicher. The previous fork only worked one way so once the component was rendered the options list could not be changed.

Attributes / Parameters

:options - This is an array of the format [ 'id' => 'any', 'title' => 'string', 'subtitle' => 'string' ] for the items in the select dropdown

:selectedItems - A string array of the selected items id's, this can be used in-place of x-model, kept over from the original implementation although I haven't really found a use for it.

id - required if multiple of the same wire:model binding is used

@CallumCarmicheal
CallumCarmicheal / power-monitor.lua
Last active October 2, 2023 20:44 — forked from cybrox/power-monitor.lua
Mekanism Induction Matrix Computer Craft Stats Display
-- Power Monitor for induction matrix
--
-- Written and copyrighted 2016+
-- by Sven Marc 'cybrox' Gehring
-- Licensed under MIT license
-- Edited by Callum Carmicheal
-- to fix the API issue on 1.16.5 ATM 6 modpack
--