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
| import { Livewire, Alpine } from '../../vendor/livewire/livewire/dist/livewire.esm'; | |
| Alpine.magic('dateTime', () => { | |
| return (utcString, options = {}) => { | |
| const defaults = { | |
| timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone, | |
| dateStyle: 'medium', | |
| timeStyle: 'short', | |
| ...options | |
| }; |
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
| from ayx import Alteryx | |
| import requests | |
| import pandas as pd | |
| import json | |
| from pandas import json_normalize | |
| # ============================================================================= | |
| # CONFIGURATION | |
| # ============================================================================= | |
| SMARTY_API_URL = "https://us-street.api.smarty.com/street-address" |
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\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\DB; | |
| class InstallPostgresExtension extends Command | |
| { | |
| /** |
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
| # isntall wsl + ubuntu from the windows app store | |
| # setup ubuntu with a username, password and update existing dependencies | |
| sudo apt update && sudo apt upgrade -y | |
| # install additional ubuntu dependencies | |
| sudo apt install apt-transport-https zip unzip |
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 an install USB | |
| # Do a regular install | |
| # Update Ubuntu and current packages | |
| # Install some additional packages | |
| sudo apt install git unzip curl ffmpeg | |
| # Disable Apache | |
| # Apache runs by default on port 80, disabled to reduce used ports. | |
| sudo systemctl disable apache2 && sudo systemctl stop apache2 |
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(['title' => false, 'width' => 'sm:max-w-lg']) | |
| <div x-data="{ open:false }"> | |
| <div @click="open = true"> | |
| {{ $trigger }} | |
| </div> | |
| <div | |
| x-cloak | |
| x-show="open" |
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
| /** | |
| * While this example uses Laravel, AlpineJS and Tailwindcss, it can be modified for use with other frameworks. | |
| **/ | |
| <div x-data="{ selected: '{{ request()->url() }}' }" class="sm:hidden"> | |
| <label for="tabs" class="sr-only">Select a tab</label> | |
| <select x-model="selected" x-on:change="selected && (window.location = selected);" id="tabs" name="tabs" class="block w-full border-gray-300 rounded-md shadow-sm focus:border-gray-400 focus:ring-2 focus:ring-offset-2 focus:ring-gray-200"> | |
| <option value="{{ route('model.show', $model) }}" x-bind:selected="this.value === selected">Show</option> | |
| <option value="{{ route('model.edit', $model) }}" x-bind:selected="this.value === selected">Edit</option> |
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
| <!-- This model requires https://github.com/calebporzio/sushi: composer require calebporzio/sushi --> | |
| <?php | |
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Timezone extends Model | |
| { |
NewerOlder