initial commit

This commit is contained in:
2021-08-08 21:11:22 +02:00
commit fe7136d801
130 changed files with 6858 additions and 0 deletions

13
bash/leap/leap.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
[[ $# != 1 || ! $1 =~ ^[0-9]+$ ]] && echo "Usage: $0 <year>" && exit 1
year=$1
leap=false
if ! (($year % 4)) && (($year % 100)) || ! (($year % 400))
then
leap=true
fi
echo $leap
exit 0