Skip to content

Instantly share code, notes, and snippets.

View forhadakhan's full-sized avatar

Forhad Khan forhadakhan

View GitHub Profile
@forhadakhan
forhadakhan / facebook-auto-unfollow.js
Last active October 30, 2025 09:01
⚙️ Educational example demonstrating DOM automation with JavaScript in the browser console. This script illustrates how to simulate user interaction and scrolling behavior using async/await and random delays.
/**
* 🧹 Facebook Auto-Unfollow Script
* --------------------------------
* This script automatically unfollows profiles from your **Facebook Following list**.
*
* ⚠️ USE RESPONSIBLY:
* - This script is for **personal use only**.
* - Avoid mass unfollowing too quickly; Facebook may temporarily restrict your actions.
* - Always test with a small batch first.
*
@forhadakhan
forhadakhan / bangladesh_phone_number_validator_regex.java
Last active June 15, 2023 17:08
Bangladesh phone number validator regex including code in java.
import java.util.regex.*;
public class Main {
public static void main(String[] args) {
String pattern = "^(?:\\+?880|0|88)?\\s?1[3456789]\\d{8}$";
String[] phoneNumbers = {
"01534567890",
"8801534567890",
"880 1534567890",
@forhadakhan
forhadakhan / bangladesh_phone_number_validator_regex.js
Created June 15, 2023 17:04
Bangladesh phone number validator regex including code in javascript.
const pattern = /^(?:\+?880|0|88)?\s?1[3456789]\d{8}$/;
const phoneNumbers = [
'01534567890',
'8801534567890',
'880 1534567890',
'88 01534567890',
'+8801534567890',
'+880 1534567890',
'+88 01534567890',
@forhadakhan
forhadakhan / bangladesh_phone_number_validator_regex.py
Created June 15, 2023 17:01
Bangladesh phone number validator regex including code in python.
import re
pattern = r'^(?:\+?880|0|88)?\s?1[3456789]\d{8}$'
phone_numbers = [
'01534567890',
'8801534567890',
'880 1534567890',
'88 01534567890',
'+8801534567890',
@forhadakhan
forhadakhan / BoundaryFillAlgorithmUsingRecursion.cpp
Created December 26, 2021 20:44
OpenGL - C++ : Boundary-Fill Algorithm Using Recursion
#include <GL/glut.h>
int ww = 600, wh = 500;
float fillCol[3] = {0.4,0.0,0.0};
float borderCol[3] = {0.0,0.0,0.0};
void setPixel(int pointx, int pointy, float f[3])
{
glBegin(GL_POINTS);
glColor3fv(f);
glVertex2i(pointx,pointy);
glEnd();