Skip to content

Instantly share code, notes, and snippets.

@AdamNaj
Created August 3, 2015 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamNaj/e7f776ff40618b96ea75 to your computer and use it in GitHub Desktop.
Save AdamNaj/e7f776ff40618b96ea75 to your computer and use it in GitHub Desktop.
Live Update test
gci master:\ -rec
$colors = "Cyan", "Gray","Green","Magenta","Red","White","Yellow"
foreach($i in 1..20){
foreach($j in 1..20){
Write-Host ("{0:D3} " -f ($i*20+$j)) -ForegroundColor "$($colors[(Get-Random -Maximum $colors.Length)])" -no
Write-Progress -Activity "Line $i, column $j" -PercentComplete (($i*20+$j)/4.2)
Start-Sleep -Milliseconds 10
}
Write-Host " "
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment