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 `parse_yturl()` from <http://stackoverflow.com/a/10524505/624466> | |
| /** | |
| * Check if the input string is a valid YouTube URL | |
| * and try to extract the YouTube Video ID from it. | |
| * | |
| * @author Stephan Schmitz <eyecatchup@gmail.com> | |
| * @param $url string The string that shall be checked. |
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
| /** | |
| * Bootstrap any application services. | |
| * | |
| * @return void | |
| */ | |
| public function boot() | |
| { | |
| Component::macro('notify', function ($message, $title = '', $type = 'success') { | |
| $this->dispatchBrowserEvent('notify', ['message' => $message, 'title' => $title, 'type' => $type]); | |
| }); |
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
| {{-- | |
| Simple Example: | |
| <x-table-simple | |
| striped // default: false | |
| :columns='[ | |
| [ | |
| "name" => "Name", | |
| "field" => "name", | |
| "columnClasses" => "", // classes to style table th | |
| "rowClasses" => "" // classes to style table td |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>CodePen - Datepicker with TailwindCSS and AlpineJS</title> | |
| <link | |
| href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" | |
| rel="stylesheet" | |
| /> | |
| <script |
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
| document.addEventListener('alpine:init', () => { | |
| window.Alpine.data('autocompleter', ({ | |
| selectedResults, | |
| max, | |
| min, | |
| ownerId, | |
| url, | |
| elName, | |
| filterEls = [], | |
| addUrl = "", |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <title>Alpine.js Accordion</title> | |
| <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet" /> | |
| <script src="https://unpkg.com/alpinejs" defer></script> | |
| </head> | |
| <body> |
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
| const mix = require('laravel-mix'); | |
| /* ... */ | |
| if (! mix.inProduction()) { | |
| let homedir = require('os').homedir(); | |
| // e.g SESSION_DOMAIN = myapp.test | |
| let domain = process.env.SESSION_DOMAIN; |
OlderNewer