Compare commits

..

3 commits

Author SHA1 Message Date
7940f6e3dd cleanup gradient 2022-08-30 23:09:48 -05:00
e950281dd9 formatting 2022-08-30 23:09:32 -05:00
2201bd06f9 add make aliases 2022-08-30 23:08:24 -05:00
5 changed files with 19 additions and 30 deletions

View file

@ -6,25 +6,11 @@ line() {
i=1 i=1
while [[ $i -le $COLUMNS ]]; do while [[ $i -le $COLUMNS ]]; do
num= num=
echo -en "\u258$(($RANDOM % 8 + 1))" echo -en "\u258$((RANDOM % 8 + 1))"
i=$(($i + 1)) i=$((i + 1))
done done
} }
# print the text with gradient
# awk -v columns=$COLUMNS -v s=$(line) \
# 'BEGIN{
# for (colnum = 0; colnum<columns+1; colnum++) {
# r = 255-(colnum*255/columns);
# g = (colnum*510/columns);
# b = (colnum*255/columns);
# if (g>255) g = 510-g;
# printf "\033[48;2;%d;%d;%dm", r,g,b;
# printf "\033[38;2;%d;%d;%dm", 255-r,255-g,255-b;
# printf "%s\033[0m", substr(s,colnum+1,1);
# }
# printf "\n";
# }'
awk -v columns=$COLUMNS -v s=$(line) \ awk -v columns=$COLUMNS -v s=$(line) \
'BEGIN{ 'BEGIN{
for (colnum = 0; colnum<columns+1; colnum++) { for (colnum = 0; colnum<columns+1; colnum++) {

View file

@ -54,3 +54,7 @@ alias zenith="zenith -d 0 -n 0"
alias pdm-start='eval "$(pdm shell)"' alias pdm-start='eval "$(pdm shell)"'
# GNU make
alias mkrt='make -C $(git rev-parse --show-toplevel)'
alias mk="make"
alias mkc="make -C"

View file

@ -83,4 +83,3 @@ help() {
format-qmd() { format-qmd() {
jupytext --from qmd $1 --pipe black jupytext --from qmd $1 --pipe black
} }