Matthieu Napoli

74 commits

MN

Matthieu Napoli

@mnapoli

👋 Open-source builder

Commit activity

74 commits in the last 7 days

longest streak 3 dayscurrent 3

2241 / 2500 XP259 XP to root

Pinned

Yesterday

Fri, Oct 16

We now have long posts! You can write long articles on /dev/null and go over the 280 characters limit. Anything longer than 280 characters will show truncated (with a …) and the rest will be displayed when clicking "Show the rest". That lets you write you full thoughts and…
I'm leaking the future Algorithm®
php
return round(
  log(1 + $stars + self::REPLIER_WEIGHT * $repliers, 2)
      + $createdAt->getTimestamp() / self::DOUBLING_PERIOD,
  6
);
Leaking Pinkary algo too
php
->orderByRaw(<<<SQL
    (((likes_count * {$likesBias} + 1.0) * (children_count * {$commentsBias} + 1.0))
    / (UNIX_TIMESTAMP() - UNIX_TIMESTAMP(answer_created_at) + {$timeBias} + 1.0)) desc
SQL)

Thu, Oct 15

That's @mnapoli's root commit.