Skip to content

Instantly share code, notes, and snippets.

Avatar

Pol Dellaiera drupol

View GitHub Profile
@drupol
drupol / test.php
Last active Sep 30, 2022
PSR responses issue when retrieving the body more than once
View test.php
<?php
/**
* This snippet is failing.
*
* To reproduce it you need:
* - nyholm/psr7
* - symfony/http-client
*/
@drupol
drupol / flake.nix
Last active Sep 14, 2022
Basic flake for PHP development
View flake.nix
{
description = "A PHP development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem
@drupol
drupol / flake.nix
Created Sep 12, 2022
flake.nix failing
View flake.nix
{
description = "A PHP development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem
@drupol
drupol / resume.json
Last active Aug 25, 2022
resume.json
View resume.json
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Pol Dellaiera",
"label": "Senior Infinidash architect, half fullstack developer by choice",
"image": "https://www.libravatar.org/avatar/a869a4a04af576127976049d17c353f079881218bf1a00b21e9d7929daeef2f2",
"email": "pol.dellaiera@protonmail.com",
"phone": "",
"url": "https://not-a-number.io",
"summary": "Find a better description on my personal website: https://not-a-number.io/about/",
@drupol
drupol / flake.nix
Created Aug 11, 2022
Flake for NodeJS dev
View flake.nix
{
description = "The NodeJS development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem
@drupol
drupol / flake.nix
Last active Jun 30, 2022
flake.nix
View flake.nix
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
flake-utils.inputs.nixpkgs.follows = "nixpkgs";
nix-shell.url = "/home/devlin/Code/loophp/nix-shell";
@drupol
drupol / test.php
Created Jun 11, 2022
Bug in loophp/collection
View test.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);
include __DIR__ . '/vendor/autoload.php';
View phpstan-bug.php
<?php
declare(strict_types=1);
namespace Snippet;
use loophp\TypedGenerators\TG;
use function PHPStan\Testing\assertType;
include __DIR__ . '/vendor/autoload.php';
@drupol
drupol / test.php
Last active Jun 8, 2022
loophp/typed-generators test
View test.php
<?php
declare(strict_types=1);
namespace Snippet;
use Faker\Generator;
use loophp\TypedGenerators\TG;
include __DIR__ . '/vendor/autoload.php';
@drupol
drupol / test-typed-generators.php
Created Jun 5, 2022
test-typed-generators.php
View test-typed-generators.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 App;