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 / 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;