Skip to content

Instantly share code, notes, and snippets.

View mhmd-azeez's full-sized avatar

Muhammad Azeez mhmd-azeez

View GitHub Profile
@mhmd-azeez
mhmd-azeez / requirements.md
Created August 7, 2026 18:29
Message24 Sync API Requirements

Message24 Product Sync API Requirements

Message24 answers customer DMs (Instagram, WhatsApp, Facebook, TikTok) with an AI agent. To answer "do you have this in red, size M, how much?" the agent searches a local copy of the shop's catalog. So we pull your products into our database and keep them fresh.

Read-only, inbound only — we never write to your system in this scope. We already do this for WooCommerce, ERPNext, ShopLink and one custom vendor API, so the shape below is what our importer already consumes.

Two endpoints

GET /shop → which shop this key belongs to, and its currency
{
"openapi": "3.0.0",
"info": {
"title": "Some cool mintlify customer",
"version": "1.0.0",
"description": "This is a test API for the Mintlify integration"
},
"servers": [
{
"url": "https://api.example.com"
@mhmd-azeez
mhmd-azeez / FpsLimiter.cs
Last active March 29, 2023 21:12
A way to artificially throttle FPS useful for video processing applications
using System.Diagnostics;
Console.WriteLine("Hello, World!");
var limiter = new FpsLimiter(60);
var rejected = new List<int>();
var accepted = new List<int>();
var watch = Stopwatch.StartNew();
@mhmd-azeez
mhmd-azeez / output.txt
Last active January 6, 2022 21:04
KLPT test
▁ئێمە▁ش -> ▁ئێمە▁
دەچینەوە -> چ
▁بۆ▁ -> ▁بۆ▁
ولاتی -> ولات
▁خۆم▁ان -> ▁خۆم▁
لێشیانخۆشبووین -> شیانخۆشبوو
لێشتانخۆشبووم -> شتانخۆشبوو
@mhmd-azeez
mhmd-azeez / README.md
Last active June 9, 2018 00:37
Right-To-Left text in GitHub

What?

Markdown doesn't natively support right-to-left languages like Kurdish, Arabic, Hebrew and Persian. Currently the best you can do is to wrap the content in a p, div or span and changing its dir and/or align properties. You can find more Info here.

How

<p dir="RTL">
سڵاو جیهان!
</p>
@mhmd-azeez
mhmd-azeez / README.md
Created June 8, 2018 23:46
Hebrew Content In GitHub - Right-To-Left Aligned - תוכן בעברית מיושר לימין

Note I: the exclamation-mark, it should be displayed as the last (not first) character,
this is a good way telling if the content is text aligned to the right.

Note II: A little confusing but it seems that in GitHub,
dir="RTL" is equal to CSS' text-align:right;, (inner-text is rendered from right-to-left)
while align="right" is equal to CSS' direction:rtl;, (container is rendered from the right-side)

Note III:

@mhmd-azeez
mhmd-azeez / AND.cpp
Last active August 8, 2017 11:53
Bitwise operators in C++
#include <iostream>
#include <bitset>
#include <string>
using namespace std;
/*
|-----|-----|-----|-----|-----|-----|-----|-----|-----|
| n | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|-----|-----|-----|-----|-----|-----|-----|-----|-----|
|value| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
@mhmd-azeez
mhmd-azeez / Second_Course.cpp
Last active May 24, 2016 13:34
Second course practical exam, C++
/*
* Practical Examination second semester
* Group (B)
* Write a program that asks the user to input (8) numbers (using loop while)
* Then the program should:
* 1. Find the average of the even numbers.
* 2. Display 'the average is even' message on the screen, if the average is even.
*/
‪#‎include‬ <iostream>
@mhmd-azeez
mhmd-azeez / functions-1.cpp
Last active May 21, 2016 12:32
Functions, what are they, how to use them and how to make them?
#include <iostream>
#include <string>
using namespace std;
string GetName()
{
cout << "What's your name? ";
string name;
cin >> name;