Skip to content

Instantly share code, notes, and snippets.

ded

Mario Álvarez m4grio

ded
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
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@m4grio
m4grio / number.erl
Last active Feb 27, 2017
PHP vs Erlang
View number.erl
-module(number).
-export([
is_perfect/1
]).
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
m4grio / Blueprint.php
Last active Jun 14, 2019
Extending Laravel 5 Blueprint for MySqlConnection
View Blueprint.php
<?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.