Skip to content

Instantly share code, notes, and snippets.

@dakala
dakala / google_calendars.yml
Created October 31, 2019 11:29 — forked from silentshade/google_calendars.yml
Google holidays calendar ids with alpha2 YAML
en:
religious:
- :name: Christian
:id: en.christian#[email protected]
- :name: Islamic
:id: en.islamic#[email protected]
- :name: Jewish
:id: en.jewish#[email protected]
national:
- :name: Australian
@dakala
dakala / Portable-utf8
Created October 6, 2021 14:43 — forked from Dethnull/Portable-utf8
This is a fork of the Portable-utf8 library found here, http://pageconfig.com/post/portable-utf8. I've fixed some typos and also added a function called utf8_whitespace_table which returns an array of whitespaces as defined here, http://www.bogofilter.org/pipermail/bogofilter/2003-March/001889.html
<?php
/**
* Portable UTF-8
* Lightweight Library for Unicode Handling in PHP
* @details http://pageconfig.com/post/portable-utf8
* @demo http://pageconfig.com/post/portable-utf-8-demo
*
* @version 1.3
@dakala
dakala / tom-select.blade.php
Created February 2, 2022 11:02 — forked from mithicher/tom-select.blade.php
Tom Select Livewire Blade Component
/* Component Usage
// Data for options
$users = \App\User::limit(6)->get()->transform(fn($user) => [
'id' => $user->id,
'title' => $user->name,
'subtitle' => $user->email
]);
// Usage in view