This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @props([ | |
| 'viewBox' => null, | |
| 'trigger' => 'hover', | |
| 'duration' => 300, | |
| 'easing' => 'easeInOut', | |
| 'event' => 'morph-icon', | |
| 'initial' => 0, | |
| ]) | |
| <div |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Filament\View\PanelsIconAlias; | |
| use Filament\Support\Icons\Heroicon; | |
| use Filament\Forms\View\FormsIconAlias; | |
| use Filament\Tables\View\TablesIconAlias; | |
| use Filament\Support\Facades\FilamentIcon; | |
| use Filament\Schemas\View\SchemaIconAlias; | |
| use Filament\Actions\View\ActionsIconAlias; | |
| use Filament\Support\View\SupportIconAlias; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** Requires: https://csswizardry.com/Obs.js/demo/ */ | |
| @custom-variant has-bandwidth-high { | |
| &:where(.has-bandwidth-high *) { | |
| @slot; | |
| } | |
| } | |
| @custom-variant has-battery-charging { | |
| &:where(.has-battery-charging *) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- Create a flat list of all files in a directory | |
| -- @param directory - The directory to scan (default value = './') | |
| -- @param recursive - Whether or not to scan subdirectories recursively (default value = true) | |
| -- @param extensions - List of extensions to collect, if blank all will be collected | |
| function scandir(directory, recursive, extensions) | |
| directory = directory or '' | |
| recursive = recursive or false | |
| -- if string.sub(directory, -1) ~= '/' then directory = directory .. '/' end | |
| if recursive then command = command .. 'R' end | |
| local currentDirectory = directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Additional spin to the animation. | |
| .hamburger { | |
| display: inline-block; | |
| width: 1.5em; | |
| height: 1.5em; | |
| padding-top: 0.3em; | |
| padding-bottom: 0.3em; | |
| vertical-align: middle; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- List of keycodes | |
| keys = { | |
| ['LEFT'] = 0, | |
| ['UP'] = 1, | |
| ['RIGHT'] = 2, | |
| ['DOWN'] = 3, | |
| ['BACKSPACE'] = 8, | |
| ['SHIFT'] = 16, | |
| ['CTRL'] = 17, | |
| ['ALT'] = 18, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Weigh rows against eachother based on different conditions, | |
| -- ordering the results based on their given weights so that | |
| -- more precise matches will show higher up in the results. | |
| -- In this example, an exact match will show up at the top | |
| -- of the results, a match at the beginning of the string | |
| -- will show next, and a match anywhere will show last. | |
| set @query = 'Liam'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="unique-id" style="display:none;"> | |
| <div class="popover-heading">This is a heading</div> | |
| <div class="popover-body">This is HTML content that will be loaded inside a </div> | |
| </div> | |
| <span tabindex="0" role="button" data-toggle="popover" data-placement="bottom" data-popover-content="#unique-id"> | |
| Click me to load a popover | |
| </span> |
NewerOlder