Skip to content

Instantly share code, notes, and snippets.

View fahadadeel's full-sized avatar

Fahad Adeel fahadadeel

View GitHub Profile
@fahadadeel
fahadadeel / BasicReadingExampleWorkFlow.cs
Created October 30, 2025 12:57
BasicReadingWorkFlow - Aspose.BarCode for .NET Example
using Aspose.BarCode.BarCodeRecognition;
using Aspose.BarCode.Generation;
using System;
using System.IO;
namespace Examples.Core.Reading;
/// <summary>
/// Test example to verify documentation and gist generation workflow.
/// </summary>
@fahadadeel
fahadadeel / BasicReadingExampleWorkFlow.cs
Created October 30, 2025 12:46
BasicReadingWorkFlow - Aspose.BarCode for .NET Example
using Aspose.BarCode.BarCodeRecognition;
using Aspose.BarCode.Generation;
using System;
using System.IO;
namespace Examples.Core.Reading;
/// <summary>
/// Test example to verify documentation and gist generation workflow.
/// </summary>
@fahadadeel
fahadadeel / BasicReadingExampleWorkFlow.cs
Created October 30, 2025 12:34
BasicReadingWorkFlow - Aspose.BarCode for .NET Example
using Aspose.BarCode.BarCodeRecognition;
using Aspose.BarCode.Generation;
using System;
using System.IO;
namespace Examples.Core.Reading;
/// <summary>
/// Test example to verify documentation and gist generation workflow.
/// </summary>
@fahadadeel
fahadadeel / BasicReadingExampleCopy.cs
Created October 30, 2025 10:42
BasicReadingCopy - Aspose.BarCode for .NET Example
using Aspose.BarCode.BarCodeRecognition;
using System;
using System.IO;
namespace Examples.Core.Reading;
/// <summary>
/// Test example to verify documentation and gist generation workflow.
/// </summary>
public static class BasicReadingExample_Test
@fahadadeel
fahadadeel / BasicReadingExampleCopy.cs
Created October 30, 2025 10:15
BasicReadingCopy - Aspose.BarCode for .NET Example
using Aspose.BarCode.BarCodeRecognition;
using System;
using System.IO;
namespace Examples.Core.Reading;
/// <summary>
/// Test example to verify documentation and gist generation workflow.
/// </summary>
public static class BasicReadingExample_Test
@fahadadeel
fahadadeel / CLA.md
Created December 3, 2024 08:47
A simple CLA document granting you the right to use, modify, and distribute contributions.

Contributor License Agreement (CLA)

By submitting a contribution to this project, you agree that:

  1. You grant the project maintainer(s) the necessary rights to use, modify, and distribute your contribution.
  2. Your contribution is your original work or that of your employer, and you have the right to license it.
  3. This agreement applies to all future contributions unless explicitly withdrawn in writing.

Signed:

@fahadadeel
fahadadeel / open-existing-workbook.cs
Created March 28, 2024 07:03
This C# example showcases how to open an existing MS excel workbook and insert text into a specified cell using the FileFormat.Cells library.
using FileFormat.Cells
string filePath = "Z:\\Downloads\\testFile1.xlsx";
// Load the workbook from the specified file path
using (Workbook wb = new Workbook(filePath))
{
// Access the first worksheet in the workbook
Worksheet firstSheet = wb.Worksheets[0];
@fahadadeel
fahadadeel / ChatGPT-PHP-Personalised-Product-Recommendation.php
Created February 2, 2023 06:04
How to use ChatGPT in a PHP-based e-commerce website to generate personalised product recommendations for users
<?php
// API endpoint URL
$url = 'https://api.openai.com/v1/engines/davinci/jobs';
// API key
$api_key = 'your-api-key-here';
// User information
$user_id = 123;
<?php
add_action( 'wp_ajax_add-notifier-email', 'add_notifier_email' );
add_action( 'wp_ajax_nopriv_add-notifier-email', 'add_notifier_email' );
function add_notifier_email() {
if(( isset( $_REQUEST[ 'email' ] ) ) && (( isset( $_REQUEST[ 'company_id' ] ) ))) {
$company_id = trim($_REQUEST[ 'company_id' ]);
$email = trim($_REQUEST[ 'email' ]);
<?php
$args = array(
'post_type' => 'company',
'posts_per_page'=> 100,
'meta_query' => array(
'relation' => 'AND',
'sponsored_clause' => array(
'key' => 'sponsored',
),