Creating a tournament bracket, complete with the lines, with the Flexbox. That means no tables, no absolute positioning, no images or svg, just plain ole html and css.
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 { PiniaPluginContext } from "pinia"; | |
import { computed, reactive, readonly, ref } from "vue"; | |
import browser from "webextension-polyfill"; | |
export type StorageType = 'sync'|'local'|'managed'|'session'; | |
export interface StorageState { | |
loading: Promise<void>, | |
loaded: boolean, | |
reading: boolean, | |
writing: boolean, |
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 | |
// require autoload | |
/* | |
* Setup Redis for PubSub for events | |
*/ | |
$redis = new Predis\Client(); | |
$pub = new Publisher($redis, 'pintourny', $subdomain); | |
$pub->send('event.type', $someData); |
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\Providers; | |
use Carbon\Carbon; | |
use Illuminate\Support\Facades\Blade; | |
use Illuminate\Support\ServiceProvider; | |
/** | |
* Class DateDirectiveServiceProvider |
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
// external link selector | |
// $('a:external').addClass('external'); | |
$.expr[':'].external = function(obj){ | |
return (obj.href != undefined) | |
&& (obj.href != '') | |
&& !obj.href.match(/^mailto\:/) | |
&& !obj.href.match(/^tel\:/) | |
&& !obj.href.match(/^sms\:/) | |
&& (obj.hostname != location.hostname); | |
}; |