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 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 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 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); | |
}; |