1
Fork 0
mirror of https://github.com/RGBCube/random-scripts synced 2025-05-14 02:54:58 +00:00

Add script

This commit is contained in:
RGBCube 2023-12-06 15:52:30 +03:00
commit 489e04d3fd
No known key found for this signature in database
2 changed files with 23 additions and 0 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
*
!.gitignore
!*.nu

18
main.nu Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env nu
print -n $"Çekiliş sonucu: (ansi red) "
(random int 0..1500 | into string)
| split chars
| each {|n|
for $i in 0..($n | into int) {
print -n "\b"
print -n $i
sleep 300ms
}
print -n $n
}
print "\b "