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
#!/bin/bash | |
# attention script completement généré par Gemini, testé et marche pour mon usage mais ne vous fiez pas non plus aveuglement a ce code | |
# quagga --output prompt.txt --include '*.php' --exclude Tests/ . --max-total-size=600000 | |
# Script pour supprimer tous les commentaires (blocs et lignes), | |
# ainsi que les lignes vides des fichiers 'prompt.txt.NNN' | |
# et concaténer le résultat dans un seul fichier. | |
# Nom du fichier de sortie |
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 | |
/* | |
* This file is part of the API Platform project. | |
* | |
* (c) Kévin Dunglas <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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 | |
use ApiPlatform\Metadata\OpenApiParameterFilterInterface; | |
use ApiPlatform\Metadata\Parameter; | |
use ApiPlatform\OpenApi\Model\Parameter as OpenApiParameter; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Database\Eloquent\Model; | |
final class PartialSearchFilter implements FilterInterface, OpenApiParameterFilterInterface | |
{ |
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"type": "object", | |
"definitions": { | |
"Dummy": { | |
"type": "object", | |
"description": "Dummy.", | |
"properties": { | |
"id": { | |
"readOnly": true, |
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
openapi: 3.1.0 | |
info: | |
title: 'My Dummy API' | |
description: |- | |
This is a test API. | |
Made with love | |
version: 0.0.0 | |
servers: | |
- | |
url: / |
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 | |
/* | |
* This file is part of the API Platform project. | |
* | |
* (c) Kévin Dunglas <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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 | |
/* | |
* This file is part of the API Platform project. | |
* | |
* (c) Kévin Dunglas <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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
$uploadSession = $this->metaClient->request('POST', sprintf('%s/uploads', $this->metaAppId), [ | |
'query' => [ | |
'file_name' => $mediaObject->getFilePath(), | |
'file_length' => $mediaObject->getContentSize(), | |
'file_type' => $mediaObject->getMimeType(), | |
'access_token' => $credential->getAccessToken(), | |
'appsecret_proof' => $this->secretProof($credential->getAccessToken()), | |
], | |
])->toArray(); |
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 Components; | |
use Symfony\Component\Finder\Finder; | |
$loader = require './vendor/autoload.php'; | |
$namespace = 'ApiPlatform'; | |
$prefix = 'api-platform'; | |
$lnamespace = strlen($namespace); |
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
local NoDistraction = { enabled = 0 } | |
NoDistraction.enable = function() | |
NoDistraction.enabled = 1 | |
vim.cmd([[ | |
set noshowmode | |
set noruler | |
set laststatus=0 | |
set noshowcmd | |
set nonumber |
NewerOlder