Commit df9409b1 authored by Ersin Korkmaz's avatar Ersin Korkmaz
Browse files

V1.1

parent cd2d1a9d
My Best Scripts
x Binclock.py => Converts the current time to Binary and displays it
x Bubblesort.py => Demonstrates Bubble-Sort graphically via 20 randomly generated numbers
x guessgame.py => User inputs Number-Range and Max Rounds. A random number within that range is generated and has to be guessed within the input roundmax.
x passgen.py => Generates random passwords until 100 passwords are created that match specific criterias (longer 12; min. 1 uppercase, 1 number and a special character; starts with lowercase)
x poker.py => Generates a random poker-hand and shows it graphically. The user can reshuffle by inputing yes, y, j, or ja
x till13.sh => Calculates the Remaining time till it is 1pm.
#!/bin/bash
CURRENTHOUR="$(date +%H)"
CURRENTDAY="$(date +%w)"
if [ $CURRENTHOUR -gt "13" ]; then
REMAININGTIME="$((24-$CURRENTHOUR+13))"
else
REMAININGTIME="$((13-$CURRENTHOUR))"
fi
echo "Hours until 1pm: $REMAININGTIME"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment