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
  • West Virginia University
  • Morgantown, WV
View GitHub Profile
@Mahedi-61
Mahedi-61 / group_plot.R
Created January 7, 2019 18:36
my paper plot
#Sample 1
x = c(70, 60, 30, 80, 40, 100, 65, 20, 55, 70, 50)
y = c(91, 53, 8, 62, 43, 86, 75, 45, 90, 10, 35)
z = c(82, 49, 31, 41, 56, 62, 50, 39, 43, 74, 65)
col = c("blue", "black", "green4")
x_tick = c(0, 18, 36, 54, 72, 90, 108, 126, 144, 162, 180)
#thicker lines
par(cex=1.25)
@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 / openpose_install_on_CentOS-7.sh
Last active August 15, 2019 06:42
installing openpose at CentOS 7 server machine
#!/bin/bash
# Openpose required CMake version >= 3.12
# remove previous verison
sudo yum remove cmake
# set new version
version=3.14
build=6
# @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 / 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
@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 / ubuntu.sh
Last active January 19, 2020 20:14
steps require to install ubuntu 18.04 LTS from 16.04 LTS
## Upgrading ubuntu from 16.04LTS to 18.04LTS using command line
# first update previous version
sudo apt update && sudo apt upgrade && sudo apt dist-upgrade && sudo apt autoremove
# update manager core
sudo apt install update-manager-core
# make prompt=lts if not in following file
sudo nano /etc/update-manager/release-upgrades
@Mahedi-61
Mahedi-61 / useful_unix_commands.sh
Last active January 19, 2020 20:15
some useful unix commands used most commonly.
#!/bin/bash
# This gist contains commands used in my everyday life
### compressing a file
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
# -c: create an archive.
# -z: compress the archive with gzip.
# -v: verbosity
# -f: allows you to specify the filename of the archive
@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
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 / 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