How to embed GraphViz in Markdown
Use this image in your html page:
\lstdefinelanguage{nix}{ | |
frame = single, | |
breaklines=true, | |
aboveskip=1ex, | |
backgroundcolor=\color{gray!25}, | |
belowskip=1ex, | |
columns=fullflexible, | |
framerule=0pt, | |
framexrightmargin=0em, | |
framexleftmargin=0em, |
<?php | |
declare(strict_types=1); | |
namespace App; | |
use Marcosh\LamPHPda\Either; | |
use Exception; | |
include __DIR__ . '/vendor/autoload.php'; |
<?php | |
/** | |
* For the full copyright and license information, please view | |
* the LICENSE file that was distributed with this source code. | |
*/ | |
declare(strict_types=1); | |
namespace Test; |
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, lib, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. |
<?php | |
/** | |
* For the full copyright and license information, please view | |
* the LICENSE file that was distributed with this source code. | |
*/ | |
declare(strict_types=1); | |
namespace App; |
<?php | |
// Factorial of a number | |
printf("\nype a number: ") | |
&& ($g = (int) trim(fgets(STDIN))) && (fn(int $g, $y) => | |
printf($y(static fn (callable $function) => static fn ($n = 1) => (1 >= $n) ? 1 : $n * $function($n - 1))($g)) | |
)( | |
$g, | |
static fn (callable $g): callable => (static fn ($f): callable => $f($f))(static fn ($f): callable => $g(static fn ($x) => $f($f)($x))) | |
); |
<?php | |
namespace App; | |
use Facile\JoseVerifier\JWK\JwksProviderBuilder; | |
use Facile\JoseVerifier\JWTVerifier; | |
use Symfony\Component\HttpClient\HttpClient; | |
use Symfony\Component\HttpClient\Psr18Client; | |
include __DIR__ . '/vendor/autoload.php'; |
<?php | |
declare(strict_types=1); | |
include __DIR__ . '/../vendor/autoload.php'; | |
use loophp\collection\Collection; | |
$integers = Collection::unfold(static fn (int $n = 1): int => $n + 1); |