mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-23 05:01:37 +01:00
Added matrix-effect.ps1
This commit is contained in:
parent
3c5eb24744
commit
4c9a6b2390
21
Data/Matrix.csv
Normal file
21
Data/Matrix.csv
Normal file
@ -0,0 +1,21 @@
|
||||
A,B,C,D,E,F,G
|
||||
" ","P"," "," "," "," ","H"
|
||||
" ","O"," "," "," "," ","A"
|
||||
" ","W"," "," "," "," ","V"
|
||||
" ","E"," "," "," "," ","E"
|
||||
" ","R"," "," "," "," "," "
|
||||
" ","S"," "," "," "," ","F"
|
||||
" ","H"," "," "," "," ","U"
|
||||
" ","E"," "," "," "," ","N"
|
||||
" ","L"," "," "," "," "," "
|
||||
" ","L"," "," "," "," "," "
|
||||
" "," "," "," "," "," "," "
|
||||
" ","R"," "," "," "," "," "
|
||||
" ","U"," "," "," "," "," "
|
||||
" ","L"," "," "," "," "," "
|
||||
" ","E"," "," "," "," "," "
|
||||
" ","S"," "," "," "," "," "
|
||||
" "," "," "," "," "," "," "
|
||||
" "," "," "," "," "," "," "
|
||||
" "," "," "," "," "," "," "
|
||||
" "," "," "," "," "," "," "
|
|
@ -23,6 +23,7 @@ The following PowerShell scripts can be found in the [Scripts/](Scripts/) subfol
|
||||
* [locate-ipaddress.ps1](Scripts/locate-ipaddress.ps1) - locates the geographic position of the given IP address
|
||||
* [MD5.ps1](Scripts/MD5.ps1) - prints the MD5 checksum of the given file
|
||||
* [make-install.ps1](Scripts/make-install.ps1) - installs built executables and libs to the installation directory
|
||||
* [matrix-effect.ps1](Scripts/matrix-effect.ps1) - shows the Matrix effect
|
||||
* [moon.ps1](Scripts/moon.ps1) - prints the current moon phase
|
||||
* [open-browser.ps1](Scripts/open-browser.ps1) - starts the default Web browser
|
||||
* [open-email-client.ps1](Scripts/open-browser.ps1) - starts the default email client
|
||||
|
35
Scripts/matrix-effect.ps1
Executable file
35
Scripts/matrix-effect.ps1
Executable file
@ -0,0 +1,35 @@
|
||||
#!/snap/bin/powershell
|
||||
|
||||
# Syntax: ./matrix-effect.ps1
|
||||
# Description: shows the Matrix effect
|
||||
# Author: Markus Fleschutz
|
||||
# Source: github.com/fleschutz/PowerShell
|
||||
# License: CC0
|
||||
|
||||
try {
|
||||
$PathToData=(get-item $MyInvocation.MyCommand.Path).directory
|
||||
$PathToData="$PathToData/../Data"
|
||||
$Table = import-csv "$PathToData/Matrix.csv"
|
||||
|
||||
Clear-Host
|
||||
foreach($Row in $Table) {
|
||||
Write-Host -nonewline $($Row.A)
|
||||
Start-Sleep -milliseconds 10
|
||||
Write-Host -nonewline $($Row.B)
|
||||
Start-Sleep -milliseconds 10
|
||||
Write-Host -nonewline $($Row.C)
|
||||
Start-Sleep -milliseconds 10
|
||||
Write-Host -nonewline $($Row.D)
|
||||
Start-Sleep -milliseconds 10
|
||||
Write-Host -nonewline $($Row.E)
|
||||
Start-Sleep -milliseconds 10
|
||||
Write-Host -nonewline $($Row.F)
|
||||
Start-Sleep -milliseconds 10
|
||||
Write-Host $($Row.G)
|
||||
Start-Sleep -milliseconds 200
|
||||
}
|
||||
exit 0
|
||||
} catch {
|
||||
Write-Error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user