Skip to content

Instantly share code, notes, and snippets.

View Jeklah's full-sized avatar
💭
programmer interested in cyber security, pen testing and all things hacks

Jeklah

💭
programmer interested in cyber security, pen testing and all things hacks
View GitHub Profile
# Original theme https://github.com/agnoster zsh theme
# modified by Jeklah
ZSH_THEME_GIT_PROMPT_DIRTY=' ±'
function _git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || ref="➦ $(git show-ref --head -s --abbrev |head -n1 2> /dev/null)"
echo "${ref/refs\/heads\// }$(parse_git_dirty)"
}
# Original theme https://github.com/agnoster zsh theme
# modified by lborg019
# further modified by Jeklah
ZSH_THEME_GIT_PROMPT_DIRTY=' ●'
function _git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || ref="➦ $(git show-ref --head -s --abbrev |head -n1 2> /dev/null)"
echo "${ref/refs\/heads\// }$(parse_git_dirty)"
}
@Jeklah
Jeklah / gameBoard.py
Last active July 24, 2021 22:31
Classes for battleships and players in the game.
"""Game Board class for battleships."""
class GameBoard:
"""Game board class to represent the game area for where the
ships can be placed in the battleships game."""
def __init__(self, shipDrawer):
self.drawBoard(10)
def drawBoard(area):