This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |