Skip to content

Instantly share code, notes, and snippets.

View bitardev's full-sized avatar

Bitar youssef bitardev

View GitHub Profile
@bitardev
bitardev / cache_revalidation.php
Created November 21, 2024 21:15
Fetch Posts/Post by Name From Wordpress REST API using GraphQL
<?php
function generate_post_json($post_id) {
// Check if this is an autosave, if so, return
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
return;
}
$data = array(
'cache_revalidation_number' => rand(1,100)
@bitardev
bitardev / custom-scripts.php
Created July 26, 2024 07:14
A challenging problem encountered on the BusinessLeague Project
<?php
/**
* Custom template scripts for this theme
*
* Eventually, some of the functionality here could be replaced by core features.
*
* @package BusinessLeague
*/
@bitardev
bitardev / FeatureOverview.md
Last active July 26, 2024 06:15
A Feature Overview of the main component for the Lead Assurances Platform

Feature Overview

ProcessImportLead Class

Introduction

The ProcessImportLead class is a key component of the Lead Assurances Platform, designed to handle the import and processing of insurance leads. This class implements the ShouldQueue interface, leveraging Laravel's queue system to process leads asynchronously, enhancing the platform's efficiency and performance.

Key Features

@bitardev
bitardev / ProjectOverview.md
Last active July 26, 2024 06:09
Project Overview for a project that I have built with Laravel/php

Project Overview

Lead Assurances Platform

Objective

The Lead Assurances Platform is designed to manage and sell qualified leads (contacts who have requested quotes on insurance websites). It aims to streamline the process of lead management and sales, ensuring efficient and accurate handling of leads from acquisition to distribution.

Key Features

@bitardev
bitardev / ShadeSimulator.vue
Last active July 26, 2024 07:53
This code is a key component of a website I had the privilege to develop as part of thier dev team. (You can find a brief in the comment section below)
<template>
<div class="product_component_wrapper" :style="$q.screen.width >= 1024 ? margin : '' ">
<div class="container-maxwidth2 flex justify-center">
<div class="col_preview">
<div class="preview_wrapper">
<img id="image" :src="imageName" alt=""/>
<!-- vue-magnifier :src="imageName" :src-large="imageName" / -->
</div>
</div>
<div class="col_features">