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 / RBF_classifier.py
Last active December 5, 2021 21:50
Radial Basis Function Netowork for MNIST classification tranined on gradient decent approach
"""
Author: Md Mahedi Hasan
For Homework Assingment 12 (CpE 520)
"""
import numpy as np
import os
import matplotlib.pyplot as plt
from torch.utils.data import DataLoader
from torchvision import transforms
@Mahedi-61
Mahedi-61 / KSOM.py
Created November 29, 2021 01:24
Implementing Kohonen Self Organizing Maps using numpy
"""
Script to implement simple self organizing map
@author: Riley Smith
Created: 1-27-21
"""
"""
@modified: Md Mahedi Hasan (11/28/2021)
For Homework Assingment 11 (CpE 520
"""
@Mahedi-61
Mahedi-61 / working_in_remote_server.sh
Last active November 18, 2021 22:02
useful unix command for beginners to work in remote server
#!/bin/bash
# This gist contains unix command useful for beginners who started working in remote server for their project.
# machine: Ubuntu 16.04
### Connection
# connecting to a remote system using SSH (Secure Shell)
ssh <remote_host>
# for different username on the remote system
ssh <user_name@remote_host>
@Mahedi-61
Mahedi-61 / autoencoder_mnist.py
Last active November 18, 2021 20:47
3-layer autoencoder for MNIST digit reconstruction and classification with visualization (Pytorch)
"""
Course: Applications of NN (CpE - 520)
Homework Assignment 9
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import torch
@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)
@Mahedi-61
Mahedi-61 / cuda_setup.sh
Created December 6, 2017 11:15
Installing CUDA toolkit v8..0 and cuDNN 6.0 on Ubuntu 16.04
#!/bin/bash
## This gist is a step by step instructions to install cuda v8.0 and cudnn 6.0 on ubuntu 16.04
## official guide: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html
### steps ####
# verify the system has a cuda-capable gpu
# verify the system has gcc installed
# download and install the nvidia cuda toolkit
# download cudnn
# setup environment variables
@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
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 / 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 / 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