mirror of
https://github.com/RGBCube/random-scripts
synced 2025-05-14 11:04:59 +00:00
Add script
This commit is contained in:
commit
489e04d3fd
2 changed files with 23 additions and 0 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
*
|
||||||
|
|
||||||
|
!.gitignore
|
||||||
|
|
||||||
|
!*.nu
|
18
main.nu
Executable file
18
main.nu
Executable 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 "
|
Loading…
Add table
Add a link
Reference in a new issue