-
A database for 2022 (hn) (Tailscale uses SQLite)
-
I'm all-in on server-side SQLite (hn) (Fly.io acquires Litstream)
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
| # Makefile to set up the SSO playground environment | |
| .PHONY: setup clean update-transistor-env update-reform-env update-tuple-env | |
| setup: | |
| @echo "Cleaning up exising directory..." | |
| @if [ ! -f sso ]; then \ | |
| $(MAKE) clean name=sso; \ | |
| fi | |
| @if [ ! -f transistor ]; then \ |
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 | |
| /** | |
| * The key to getting Intercom to work with wire:navigate is using an undocumented but well supported feature. | |
| * My source for how I know they are supporting it: https://github.com/intercom/intercom-rails/issues/336 | |
| ** | |
| @if (config('intercom.app_id')) | |
| <script> | |
| // From Intercom docs | |
| const APP_ID = "{{ config('intercom.app_id') }}"; |
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
| PUSHER_HOST=socket.yourdomain.com | |
| PUSHER_APP_ID=unlock | |
| PUSHER_APP_KEY=123 | |
| PUSHER_APP_SECRET=456 | |
| PUSHER_PORT=443 | |
| PUSHER_SCHEME=https |
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', () => { | |
| Alpine.store('breakpoint', { | |
| listeners: {}, | |
| init() { | |
| const breakpoints = { | |
| sm: 640, | |
| md: 768, | |
| lg: 1024, | |
| xl: 1280, |
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 Tests; | |
| use Illuminate\Contracts\Auth\Authenticatable; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| use Illuminate\Validation\ValidationException; | |
| use Illuminate\Validation\Validator; | |
| use Symfony\Component\HttpFoundation\ParameterBag; | |
| use function PHPUnit\Framework\assertFalse; |
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 Tests; | |
| use Illuminate\Database\Eloquent\Factories\Factory; | |
| use Illuminate\Foundation\Testing\TestCase as BaseTestCase; | |
| use Illuminate\Support\Facades\File; | |
| use Illuminate\Support\Str; | |
| use ReflectionClass; | |
| use SplFileInfo; |
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
| <template> | |
| <div v-click-outside="close"> | |
| <label v-if="label" class="form-label" @click="open">{{ label }}:</label> | |
| <div class="relative"> | |
| <div ref="input" @click="open" @focus="open" @keydown.down.prevent="open" @keydown.up.prevent="open" :class="{ focus: show, error: error }" class="form-input pr-6" :tabindex="show ? -1 : 0"> | |
| <slot v-if="value"></slot> | |
| <div v-else-if="data.length === 0" class="text-grey-600">No options found</div> | |
| <div v-else class="text-grey-600">Click to choose…</div> | |
| </div> | |
| <button type="button" @click.stop="clear" v-if="value" tabindex="-1" class="absolute p-2 inline-block text-grey-500 hover:text-amber-700" style="right: 4px; top: 8px;"> |
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
| <template> | |
| <div> | |
| <label v-if="label" class="form-label" :for="`date-input-${_uid}`">{{ label }}:</label> | |
| <input v-bind="$attrs" class="form-input" :id="`date-input-${_uid}`" :class="{ error: error }" type="text" ref="input" :value="value" @change="change" @keyup="change"> | |
| <div v-if="error" class="form-error">{{ error }}</div> | |
| </div> | |
| </template> | |
| <script> | |
| import pikaday from 'pikaday' |
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
| https://symfony.com/doc/current/bundles/StofDoctrineExtensionsBundle/index.html |
NewerOlder