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
# @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 April 10, 2024 03:34
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 August 4, 2023 03:47
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
@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 / 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
@Mahedi-61
Mahedi-61 / net_config.sh
Created September 14, 2018 06:40
Instructions for installing static and dynamic IP address in Arch Linux
# first, install netctl if not already installed.
sudo pacman -S netctl
# to find out network card name; check
ip link
### configuring Static IP address
# my network card name is enp0s3. Now, copy the sample network card profile
sudo cp /etc/netctl/examples/ethernet-static /etc/netctl/enp0s3
@Mahedi-61
Mahedi-61 / sync_image_blend.py
Created September 2, 2018 15:39
this gist contains python code for blening icon images into source image
"""
@Author: Md Mahedi Hasan
"""
# python modules
import re, random
import os, glob
from skimage import io, util
from scipy import ndarray, ndimage
from PIL import Image
import PIL
@Mahedi-61
Mahedi-61 / preprocess_go.sh
Last active August 21, 2018 09:03
unix script for preprocessing and preparing Gene Ontology Consortium dataset (go annotations)
#!/bin/bash
# This gist preprocess goa dataset of over 543M samples (~94 GB) to around 170M samples with selected column (~6 GB) for research
# removing first 8 lines
sed -i '1,8d' goa_uniprot_all.gaf
# putting NA to missing values
sed -i "s/\t\t/\tNA\t/g" goa_uniprot_all.gaf
# making string to one single world
sed -i 's/ /-/g' goa_uniprot_all.gaf