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 | |
// don't forget to run PHP with root | |
function russian($roulette) { | |
shuffle($roulette); | |
$kaboum = $roulette[0]; | |
if (null === $kaboum) { | |
return 'Try again!'; |
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 | |
declare(strict_types=1); | |
namespace App\Application\Request\Account; | |
use Symfony\Component\PropertyAccess\PropertyAccess; | |
use Symfony\Component\Validator\Constraints as Assert; | |
use Symfony\Component\Validator\Exception\ValidatorException; | |
use Symfony\Component\Validator\Validation; |
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
#!/usr/bin/env ruby | |
require "tweet_deletion" | |
require 'yaml' | |
config = YAML.load_file('config.yml') | |
TweetDeletion.with( config ) do | |
for_archive("./archive/") do | |
keep_if earlier_than(3.years.ago), tag:" 📅 " # When I was young, I was. |
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
04108239d89ff5fb16229c83007895d9846cb167adee6c58f2515048e7ad13af28c743cf2717049cf70c8decc2e951bc36469cf9826d67c7ac8a373568b0f72191 |
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
docker info 01:30:22 | |
Containers: 3 | |
Running: 3 | |
Paused: 0 | |
Stopped: 0 | |
Images: 9 | |
Server Version: swarm/1.2.3 | |
Role: primary | |
Strategy: spread | |
Filters: health, port, containerslots, dependency, affinity, constraint |
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
{ | |
"52498eea8ead0ec0230041a7":{"id":"52498eea8ead0ec0230041a7","name":"Les appareils de chauffage \u00e9lectrique moderne","slug":"les-appareils-de-chauffage-electrique-moderne","type":"page"}, | |
"52498f0e8ead0ec5200041a8":{"id":"52498f0e8ead0ec5200041a8","name":"Les technologies utilis\u00e9es","slug":"les-technologies-utilisees","type":"page"}, | |
"52498f2c8ead0ec0230041a8":{"id":"52498f2c8ead0ec0230041a8","name":"Les normes applicables","slug":"les-normes-applicables","type":"page"}, | |
"52498f4a8ead0e7b220041a8":{"id":"52498f4a8ead0e7b220041a8","name":"Confort thermique","slug":"confort-thermique","type":"page"}, | |
"52498f8b8ead0ec5200041a9":{"id":"52498f8b8ead0ec5200041a9","name":"Propret\u00e9 de l'air","slug":"proprete-de-l-air","type":"page"}, | |
"52498fa88ead0ec0230041a9":{"id":"52498fa88ead0ec0230041a9","name":"Souplesse et adaptabilit\u00e9","slug":"souplesse-et-adaptabilite","type":"page"}, | |
"52498fc28ead0e7b220041a9":{"id":"52498fc28ead0e7b220041a9","name":"Simplicit\u00e9 d'utilisation","slug":"s |
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
tick: | |
child: | |
age: | |
label: Age de l'enfant | |
choices: | |
2: De 0 à 2 ans | |
310: De 3 à 10 ans | |
# Output -> Age de l'enfant | |
# Output -> De 0 à 2 ans |
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 Infrastructure\Website\Persistence; | |
use Domain\Website\Entity\Website; | |
use Domain\Website\ValueObject\WebsiteId; | |
use Domain\Website\Repository\WebsiteRepository; | |
class InMemoryRepository implements WebsiteRepository | |
{ |
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 | |
include('../wp-load.php'); | |
include('vendor/autoload.php'); | |
$config = \Symfony\Component\Yaml\Yaml::parse(file_get_contents('config.yml')); | |
$purifier_config = HTMLPurifier_Config::createDefault(); | |
foreach ($config as $k => $v) { | |
$purifier_config->set($k, $v); |
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 | |
/** | |
* Class Holidays | |
*/ | |
class Holidays | |
{ | |
/** | |
* @var array | |
*/ |
NewerOlder