Skip to content

Instantly share code, notes, and snippets.


Mario Álvarez m4grio

Block or report user

Report or block m4grio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am m4grio on github.
  • I am m4grio ( on keybase.
  • I have a public key ASCEdeNL4pOKFEJXFEzGSTySrTjezd9WY9rszqSPTD7Qwgo

To claim this, I am signing this object:

m4grio / number.erl
Last active Feb 27, 2017
PHP vs Erlang
View number.erl
is_perfect(N, N, S) -> N==S;
is_perfect(N, M, S) when N rem M == 0 -> is_perfect(N, M+1, S+M);
is_perfect(N, M, S) -> is_perfect(N, M+1, S).
is_perfect(N) -> is_perfect(N, 1, 0).
m4grio / Blueprint.php
Last active Jun 14, 2019
Extending Laravel 5 Blueprint for MySqlConnection
View Blueprint.php
namespace App\Database\Schema;
use Illuminate\Database\Schema\Blueprint as ParentBlueprint;
use Illuminate\Support\Facades\DB;
* Class Blueprint
You can’t perform that action at this time.