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 | |
| namespace App\Livewire\Attributes; | |
| use Attribute; | |
| use Livewire\Features\SupportAttributes\Attribute as LivewireAttribute; | |
| use function Livewire\store; | |
| #[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)] |
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 | |
| function imageToAscii($path, $maxWidth = 100, $maxHeight = 100) | |
| { | |
| $contrast = 5; | |
| $characters = str_split( | |
| str_repeat(' ', $contrast * 10) | |
| . '`.-\':_,^=;><+!rc*/z?sLTv)J7(|Fi{C}fI31tlu[neoZ5Yxjya]2ESwqkP6h9d4VpOGbUAKXHm8RD#$Bg0MNWQ%&@' | |
| ); |
OlderNewer