Skip to content

Instantly share code, notes, and snippets.

View Mahedi-61's full-sized avatar
🕌
Oh Lord! Bestow me with Knowledge

Md Mahedi Hasan Mahedi-61

🕌
Oh Lord! Bestow me with Knowledge
View GitHub Profile
@Mahedi-61
Mahedi-61 / parity-3-problem
Last active January 10, 2023 21:00
Solving Parity-3 problem using 3-layer from scratch
# solving parity-3 problems using numpy only
from os import error
import numpy as np
import math
np.random.seed(1)
def relu(x):
return np.maximum(0, x)
@Mahedi-61
Mahedi-61 / pdftk_commands.sh
Last active November 2, 2020 14:41
useful commands of shell script pdftk
# Replacing few page from a pdf file using another pdf file
pdftk A=first.pdf B=second.pdf cat A1 B1 A3-end output out.pdf
# Above code means second page of first.pdf is replaced by the first page of second PDF
# merging multiple files into one file
pdftk file1.pdf file2.pdf cat output mergedfile.pdf
@Mahedi-61
Mahedi-61 / bslr.ipynb
Last active March 24, 2020 02:48
Notebook for running openpose for my Bangla Sign Language Project in Google Colaboratory
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mahedi-61
Mahedi-61 / latex_math.tex
Last active December 27, 2019 19:58
gait journal latex math
#for equation 3
\begin{align*}
\alpha &=
\begin{cases}
\tan^{-1}{\frac{|J_{2x}-J_{1x}|}{|J_{2y}-J_{1y}|}} & J_{2y} \neq J_{1y}\\
\pi/2 & J_{2y} = J_{1y}
\end{cases} \\ \noalign{\vskip10pt}
\beta &=
\begin{cases}
@Mahedi-61
Mahedi-61 / AlgorithmForBDGovt.py
Last active August 19, 2021 19:47
how BD government find Abrar Murderer
"""
Author: A cup of Tea
Description: Algorithm about how BD government is going to find Abrar Murderer
"""
def findGuiltyToAbrarMurder():
if(guilty == activistOfBCL):
victim = activistOfShibir
silenceLikeHell()
useBruteForceToRemoveMovement(BCLGang, BDPolice)
# @Author: A Cup of Tea
# @Content: Gantt Chart for publishing a magazine within 3 month
import plotly.figure_factory as ff
df = [dict(Task="Assigning articles to writers", Start='2019-10-05', Finish='2019-10-25'),
dict(Task="Knocking Writers", Start='2019-10-05', Finish='2019-10-30'),
dict(Task="Collecting Articles", Start='2019-10-15', Finish='2019-11-10'),
dict(Task="Initial Review", Start='2019-10-15', Finish='2019-10-30'),
dict(Task="Request to Re-write", Start='2019-10-15', Finish='2019-11-15'),
@Mahedi-61
Mahedi-61 / Makefile.config
Last active August 15, 2019 06:33
Instructions to install Cafee in CentOS 7 server machine
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
# CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers
@Mahedi-61
Mahedi-61 / CUDA_Toolkit_10.0_installation_on_CentOS_7.sh
Last active December 20, 2024 08:51
Step by step instructions for installing CUDA Toolkit 10.0 CentOS 7 Server machine for running Deep Learning projects
#!/bin/bash
## This gist contains step by step instructions to install cuda v10.1 and cudnn 7.6 in CentOS 7
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@Mahedi-61
Mahedi-61 / installing_opencv_3.45_in_CentOS-7.sh
Last active June 12, 2025 23:07
Step by step instructions to build and install OpenCV from source on CentOS 7
#!/bin/bash
# This gist is a step by step instructions to build and install OpenCV from source on CentOS 7
# note: The easy and quick way to install is
# sudo yum install opencv opencv-devel opencv-python
# But this easy pypi installation can’t open video files on GNU/Linux distribution or on mac OS X system.
# And on some system opencv binaries provided packages are not compiled.
# Therefor we have no way rather than build it from source.
### first update and upgrade pre-install yum packages.
@Mahedi-61
Mahedi-61 / character_segmentation.py
Created February 10, 2019 13:17
Code for Bangla Character Segmentation (Modified from avidLearnerInProgress/sudoku-solver-openCV-python)
#Author: Md Mahedi Hasan
#Date : 10/02/2019
#Description: Code for character segmentation in image
import cv2
import operator
import numpy as np
from matplotlib import pyplot as plt