Skip to content

Instantly share code, notes, and snippets.

View jbtronics's full-sized avatar

Jan Böhmer jbtronics

View GitHub Profile

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:

<html>
<head>
<script>alert("XSS");</script>
</head>
</html>
# more .gitignore files are in:
# - data/
# - data/backup/
# - data/log/
# - data/media/
# - documentation/dokuwiki/cache/
# - documentation/dokuwiki/tmp/
# ignore Doxygen builds
development/doxygen/html/
<?php
/*
* Demo applicaton to demonstrate userspace operator overloading.
*/
class Vector3 {
public float $x;
public float $y;
public float $z;
@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;
@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.