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 | |
| // Create a DateTimeImmutable with the date and time to compare to. | |
| // Use your current timezone, or the timezone of your visitor. I am in Sweden. | |
| $now = new DateTimeImmutable('now', new DateTimeZone('Europe/Stockholm')); | |
| // Create the object with your birthday. | |
| $birthday = $now->setTimezone(new DateTimeZone('Europe/Amsterdam')); // Born in the Netherlands | |
| $birthday = $birthday->setDate(1991, 10, 23); // On the 23rd of October, 1991 | |
| $birthday = $birthday->setTime(20, 9); // 9 minutes past 8 in the evening | |
| // What year is it? | |
| $currentyear = intval($now->format('Y')); |
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
| <style> | |
| table { | |
| border-collapse: collapse; | |
| } | |
| th, td { | |
| padding: .5em 2em .5em .5em; | |
| border-right: 1px dotted #AAA; | |
| border-bottom: 1px solid #CCC; | |
| } | |
| th { |
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
| /* People’s names. */ | |
| span > a[data-hovercard^="/ajax/hovercard/user.php?"], /* poster and shares */ | |
| .UFICommentActorName, /* comments */ | |
| .UFICommentBody .profileLink /* inside comments */ | |
| { | |
| background-color: currentColor; | |
| } | |
| /* People’s avatars. */ | |
| a[data-hovercard^="/ajax/hovercard/user.php?"] > div > img._s0, /* poster */ |
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 | |
| declare(strict_types=1); | |
| namespace Zegnat\Utils; | |
| use Interop\Http\Factory\ServerRequestFactoryInterface; | |
| use Interop\Http\Factory\StreamFactoryInterface; | |
| use Psr\Http\Message\ServerRequestInterface; |
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 Zegnat\Omnimail; | |
| use Omnimail\EmailSenderInterface; | |
| use Omnimail\EmailInterface; | |
| use Psr\Log\LoggerInterface; | |
| use Psr\Log\NullLogger; | |
| class Mail implements EmailSenderInterface | |
| { |
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
| CodeMirror.defineSimpleMode('human_resource_machine', { | |
| // The start state contains the rules that are intially used | |
| start: [ | |
| // Possible header. | |
| { | |
| regex: /^-- HUMAN RESOURCE MACHINE PROGRAM --$/, | |
| token: 'string' | |
| }, | |
| // Comment definition. | |
| { |
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
| /* Show flags on links to a different language than your entry: */ | |
| .h-entry:not([lang|="nl"]) a[hreflang|="nl"]::after { content: ' 🇳🇱'; } | |
| .h-entry:not([lang|="en"]) a[hreflang|="en"]::after { content: ' 🇬🇧'; } | |
| /* You can overwrite on a regional basis: */ | |
| .h-entry:not([lang|="en"]) a[hreflang="en-US"]::after { content: ' 🇺🇸'; } | |
| /* Then remove flags for your default language: */ | |
| .h-entry:not([lang]) a[hreflang|="en"]::after { content: none; } |
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
| Restults from https://kartikprabhu.com/static/demo/selection-encodeURI.html on Windows 10 Pro. | |
| --- | |
| Internet Explorer 11 | |
| Version: 11.576.14373.0 | |
| non-breaking space? Let's try UTF non-breaking space in decimal or non-breaking space in hex? | |
| non-breaking%20space?%20Let's%20try%20UTF%20non-breaking%20space%20in%20decimal%20or%20non-breaking%20space%20in%20hex? |
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 Zegnat; | |
| class QBool | |
| { | |
| public $chance; | |
| public $scale; | |
| public function __construct($chance) |
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
| @@ -70,16 +70,16 @@ | |
| }); | |
| // enter key submits form | |
| - $items.on('enterKeyDown', function onEnterKeyDown(e) { | |
| + $widget.on('enterKeyDown', function onEnterKeyDown(e) { | |
| $form.submit(); | |
| }); | |
| // spacebar triggers 'check' event |