Skip to content

Instantly share code, notes, and snippets.

View ChrisReid's full-sized avatar

Chris Reid ChrisReid

View GitHub Profile
@humayunjavaid
humayunjavaid / date-picker.blade.php
Created September 29, 2022 12:18
Pickaday Integration with Laravel Livewire And Alpine js
<div
x-data="{ value : @entangle($attributes->wire('model')) }"
x-on:change="value = $event.target.value"
x-init="
new Pikaday({ field: $refs.input, 'format': 'MM/DD/YYYY' });"
>
<div class="relative mt-2">
<input
{{ $attributes->whereDoesntStartWith('wire:model') }}
x-ref="input"
@jcgregorio
jcgregorio / How_to_use.html
Last active July 17, 2023 14:44
HTML Templating using the HTML <template> element and exactly 100 lines of JS. A cleaned up version of this code is now available at https://github.com/jcgregorio/stamp/.
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="templating.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<template id=t>
@ziadoz
ziadoz / awesome-php.md
Last active February 3, 2025 20:55
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.