Skip to content
View LabodiDavid's full-sized avatar

Highlights

  • Pro
Block or Report

Block or report LabodiDavid

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
LabodiDavid/README.md

Intro GIF Linkedin Badge Personal Website Badge Visitors Badge


πŸ› οΈ I'm familiar with..

HTML5 CSS3 SASS Bootstrap JavaScript NodeJS JQuery Wordpress
PHP Laravel MySQL MariaDB
C# Java Shell
Docker Apache Nginx Jenkins Cisco Cloudflare Debian Microsoft Windows Windows Terminal
Gitea GitLab
After Effects Premiere Pro
PHPStorm IntelliJ Visual Studio Notepad++ Eclipse Atom
Udemy


codersrank.io - summary widget


β˜• Click here to see an introduce of myself in PHP laravel β˜•
namespace World\Earth\Europe\Hungary;

use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use App\Models\Question;
use App\Models\Solution;
use App\Models\Knowledge;
use Udemy;
use Google;
use StackOverFlow;
use GPT;

class Labodi_David extends People
{
use HasMotivation, HasGoals;

    protected $fillable = ['coffee', 'knowledge'];

    public function __construct()
    {
        $this->middleware(['PreventRequestsWithoutCoffee', 'IT_Administrator', 'Programmer']);
    }
    
    /**
     * Find the solution to a question.
     *
     * @param  Question  $question
     * @return Solution
     */
    public function findSolution(Question $question): Solution
    {
        if ($this->knowledge->contains($question)) {
            return $this->knowledge()->getSolution($question);
        }
        
        return $this->learn($question)->getSolution();
    }
    
    /**
     * Learn about a question and gather knowledge.
     *
     * @param  Question  $question
     * @return Knowledge
     * @throws CoffeeNotFoundException
     */
    private function learn(Question $question): Knowledge
    {
        $knowledge = new Knowledge();
        if ($this->hasDrankCoffee()) {
            while (!$knowledge->hasInformation()){
                $knowledge->collectInformation([
                    Google::search($question),
                    StackOverFlow::search($question),
                    GPT::ask($question)
                ]);
            }
            return $this->knowledge()->save($knowledge);
        } else {
            throw new CoffeeNotFoundException();
        }
    }
    
    /**
     * Get the knowledge relation.
     *
     * @return BelongsToMany
     */
    public function knowledge(): BelongsToMany
    {
        return $this->belongsToMany(Knowledge::class);
    }
    
    /**
     * Check if David has drank coffee.
     *
     * @return bool
     */
    private function hasDrankCoffee(): bool
    {
        return !empty($this->coffee);
    }
}

πŸ”₯ Fancy stuffs I used in this profile README:

Pinned

  1. SimplifyTools SimplifyTools Public

    An "All-In-One" plugin for MC Spigot servers. TabList Customizing, Custom Advancement, Connect messages, AutoSave, Logger

    Java 1