Thursday, 12 February 2009

Tomato Timing

After reading about the tomato timing, I decided that I should give it a go…

So the first thing I needed was a way to time myself, so after looking on the internet for a simple count down timer I found that most suck ( which is hard to do since you just want a count down ) and they want you to pay – why ? are they trying to rip off the masses who can’t do any form of developing or scripting.. *sigh* and power things like GIT are free… go figure!

So since I need to learn how to use powershell, I might as well write a Tomato timer in Powershell… so here you go, for free -  a PS tomato timer :

param([int]$mins =25 )
while($mins -gt 0 ) {
  
$host.ui.RawUI.WindowTitle ="$mins mins remaining"
  
Start-Sleep(60)
  
$mins =$mins -1
    }
Write-Host`a



No comments:

Post a Comment