Skip to content

Instantly share code, notes, and snippets.

View andrewmy's full-sized avatar

Andrew andrewmy

View GitHub Profile
@andrewmy
andrewmy / matrix.php
Created January 23, 2024 10:24
Solving a random set of equations as a matrix
#!/usr/bin/env php
<?php
use MathPHP\LinearAlgebra\MatrixFactory;
use MathPHP\LinearAlgebra\Vector;
/**
* composer require markrogoyski/math-php
*/
require_once __DIR__ . '/vendor/autoload.php';

Keybase proof

I hereby claim:

  • I am andrewmy on github.
  • I am andrewmy (https://keybase.io/andrewmy) on keybase.
  • I have a public key ASDnEXy90BTZrLw9XNqv2OanFHeNS1Lr7vN-40KocbVF1go

To claim this, I am signing this object:

@andrewmy
andrewmy / FooAdmin.php
Created June 8, 2018 13:34
Show/hide Sonata admin field groups based on some choice field
<?php
declare(strict_types=1);
namespace App\Admin;
class FooAdmin extends AbstractAdmin
{
protected function configureFormFields(FormMapper $formMapper): void
{