Skip to content

Instantly share code, notes, and snippets.

View harish3124's full-sized avatar

Harish harish3124

View GitHub Profile
@harish3124
harish3124 / convert_and_rename_image.bash
Last active September 29, 2021 05:16
Bash Script to Convert and Rename images in a directory !
# Check if a path is given
if [[ -z $1 ]]; then
line="Provide a path !!!!"
echo -e "\e[01;31m$line\e[0m" >&2 # Print in Red to Stderr
exit # Stop file execution
fi
# Check if the given path is a Directory
ERR=$(cd $1 2>&1)
@harish3124
harish3124 / tic_tac_toe.py
Last active September 23, 2021 11:31
Tic Tac Toe in Python
# --------------------- Variable --------------------------
game_board = [" - ", " - ", " - ", " - ", " - ", " - ", " - ", " - ", " - "]
players = [" X ", " O "]
winner = ""
game_still_on = True