Coder Social home page Coder Social logo

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:

LabodiDavid's Projects

dit_filenamereader icon dit_filenamereader

A simple winforms application written in c# for list, filter filenames in a directory.

laravel-page-speed icon laravel-page-speed

Package to optimize your site automatically which results in a 35%+ optimization

openrails icon openrails

Clone of the official OpenRails repository + work in progress. Info in Readme_branch branch

simplifytools icon simplifytools

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.