Skip to content

Instantly share code, notes, and snippets.

View jbtronics's full-sized avatar

Jan Böhmer jbtronics

View GitHub Profile
@jbtronics
jbtronics / SnakeCasePropertyAccessExtractor.php
Created September 19, 2023 21:46
Workaround for problems with snake_case properties with PropertyInfo and API Platform
<?php
/*
* This file is part of Part-DB (https://github.com/Part-DB/Part-DB-symfony).
*
* Copyright (C) 2019 - 2023 Jan Böhmer (https://github.com/jbtronics)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@jbtronics
jbtronics / vector.php
Last active July 28, 2021 14:42
[RFC] PHP Userspace Operator Overloading Demo
<?php
/*
* Demo applicaton to demonstrate userspace operator overloading.
*/
class Vector3 {
public float $x;
public float $y;
public float $z;
<?php
/*
* Demo applicaton to demonstrate userspace operator overloading.
*/
class Vector3 {
public float $x;
public float $y;
public float $z;
# more .gitignore files are in:
# - data/
# - data/backup/
# - data/log/
# - data/media/
# - documentation/dokuwiki/cache/
# - documentation/dokuwiki/tmp/
# ignore Doxygen builds
development/doxygen/html/
<html>
<head>
<script>alert("XSS");</script>
</head>
</html>

Keybase proof

I hereby claim:

  • I am jbtronics on github.
  • I am jbtronics (https://keybase.io/jbtronics) on keybase.
  • I have a public key ASDWx3gz7wBgBv6xcCyds9L0r7EVUBTY3s1IgNQsFxGDDwo

To claim this, I am signing this object: