Skip to content

Instantly share code, notes, and snippets.

View Ferror's full-sized avatar
🌙

Zbigniew Malcherczyk Ferror

🌙
View GitHub Profile
@Ferror
Ferror / asyncapi-github-copilot.prompt.md
Created October 19, 2025 16:04
Generate Async API documentation via Github Copilot AI

✨ Epic: Generate & Validate AsyncAPI 3.0 document for all outbound events/messages this service publishes

Goal: Analyze this repository to discover every contract, event, and message published by this service, and document them in a single AsyncAPI 3.0 YAML at docs/asyncapi/asyncapi.yaml.


Why

  • We need a machine‑readable contract for our outbound messaging to improve discoverability, integration safety, and change management.
  • A well‑scoped issue with explicit deliverables, mapping rules, and CI enables GitHub Copilot (coding agent) to produce a high‑quality PR with minimal back‑and‑forth.
@Ferror
Ferror / generate.php
Last active November 3, 2023 18:01
Async API Schema Generator from PHP class
<?php
function translate(string $type): string
{
return match ($type) {
'bool', 'boolean' => 'boolean',
'int', 'integer' => 'integer',
'float', 'number' => 'number',
default => 'string',
};
<?php
class Auto
{
protected $predkosc = 0;
protected $ladunek = 0;
protected $liczba_pasazerow = 0;
public function przyspiesz()
{
<?php
declare(strict_types=1);
class Product implements \JsonSerializable
{
private $name;
private $price;
public function __construct($name, float $price)
{
@Ferror
Ferror / use-case.php
Last active March 5, 2021 08:41
Bookkeeping
<?php
declare(strict_types=1);
$bookkeeping = new WfirmaBookkeeping(new WfirmaClient('login', 'password'));
//Invoice
$invoice = $bookkeeping->findInvoice(new InvoiceId('identifier'));
$contractor = $bookkeeping->createContractor(
@Ferror
Ferror / pvm.c
Created May 19, 2020 16:30
Pseudo PVM program
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "pvm3.h"
char* FILE_PATH = "SCIEZKA DO PLIKU";
void parent()
{
FILE* input = fopen(FILE_PATH, "r");
@Ferror
Ferror / php.md
Last active February 17, 2020 21:19
How would i see project structures across all languages

.cd .ci .docker bin public

DDD

src/
    Domain/
 Infrastructure/