Skip to content

Instantly share code, notes, and snippets.

View Zakarialabib's full-sized avatar

Zakaria Labib Zakarialabib

View GitHub Profile
@Zakarialabib
Zakarialabib / ar.md
Last active June 24, 2023 11:37
PHP UK Conference 2023: Rust For PHP Developers

حسنًا ، هل يمكن للجميع سماعي على ما أعتقد حتى في الخلفية ، وهو أمر رائع

مرحبًا به لمطوري PHP لأولئك الذين لا يعرفونني ، اسمي Nuno مبتكر أدوات متعددة مفتوحة المصدر على نظام PHP الإيكولوجي مثل Pest Collision Larastan

والمزيد من مشروعي الأساسي إلى جانب العمل من أجل Laravel PHP إذا كنت لا تعرف ما هو إلى حد

كبير إطار اختبار PHP أنيق

@Zakarialabib
Zakarialabib / Quill.php
Last active June 4, 2023 22:46
Text Editor with Quill & Livewire
<?php
namespace App\Http\Livewire;
use Livewire\Component;
class Quill extends Component
{
public const EVENT_VALUE_UPDATED = 'quill_value_updated';
@Zakarialabib
Zakarialabib / QrGenarator.php
Last active May 25, 2023 20:08
Livewire Qr Generator
<?php
declare(strict_types=1);
namespace App\Http\Livewire;
use Livewire\Component;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Facades\Gate;
use SimpleSoftwareIO\QrCode\Facades\QrCode;
@Zakarialabib
Zakarialabib / export-json.gs
Created May 15, 2023 12:06
Export json google sheet
function doGet() {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Data");
var range = sheet.getDataRange();
var values = range.getValues();
var headers = values[0];
var data = values.slice(1);
var json = {};
for (var col = 0; col < headers.length; col++) {
var header = headers[col];
@Zakarialabib
Zakarialabib / bot.py
Last active April 22, 2023 20:41
Invoices Classification
import imaplib
import email
import re
import os
import datetime
from reportlab.lib.pagesizes import letter
from reportlab.pdfgen import canvas
from argparse import ArgumentParser
@Zakarialabib
Zakarialabib / .htaccess
Created March 21, 2023 19:40
A LARAVEL HTACCES FILE
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
<Files .htaccess>
order allow,deny
deny from all
</Files>
@Zakarialabib
Zakarialabib / LiveBuilder.md
Last active December 11, 2022 15:57
LiveBuilder with Livewire Laravel

This is an experimantation with CHATGPT

the idea is to make a livebuilder with livewire

@Zakarialabib
Zakarialabib / ChatBotLivewire.md
Created December 6, 2022 14:28
ChatBot Laravel Livewire PHP-ML

ChatBot Laravel Livewire PHP-ML

I was expermenting with chatgpt, i had the idea to build chatbot, i already tried that years ago botman and rasa,

so there is plenty of things to work on

i thought of building it with livewire cause it's fast for chat responses,

composer require php-ai/php-ml

@Zakarialabib
Zakarialabib / Carousel.blade.php
Last active December 3, 2022 20:51
Alpinejs Swiperjs Component Image Carousel
@Zakarialabib
Zakarialabib / ImageUpload.php
Last active November 15, 2022 23:45
Livewire url and image upload
    public function saveImage()
    {
        if ($this->image_url) {
            $image = file_get_contents($this->image_url);
            $imageName = Str::random(10).'.jpg';
            Storage::disk('local_files')->put('products/'.$imageName, $image, 'public');
            $this->product->image = $imageName;