My son heard all the alien beeps and asked me for this one, the Popcorn tune. I couldn't say no :) 1..2 | % { 1..2 | % {900,800,900,700,550,700,450 | % { [console]::beep($_,50); sleep -m 150}; sleep -m 250} 900,1000,1050,1000,1050,1000,1050,900,1000,900,1000,800,900,800,900 | % { [console]::beep($_,50); sleep -m 150} sleep -m 250 1..2 | % {900,800,900,700,550,700,450 | % { [console]::beep($_,50); sleep -m 150}; sleep -m 250} 900,1000,1050,1000,1050,1000,1050,900,1000,900,1000,800,900,1000,1050...
In response to Steve's Scripting/Sysadmin Meme How old were you when you started programming? I was 27 when I started to write HTML/ASP pages. What was your first machine? My first real computer was Windows 95 PC. When I was 12 (I think), my uncle gave me a Texas Instruments (I can't remember the model name) but at that time I wasn't a computer geek. What was the first real script you wrote? Looping through ADO recordset and populating Active Server Pages (ASP). What scripting languages...
Five tones: $notes = 900,1000,800,400,600 $duration = 400,400,400,400,1600 0..($notes.length-1) | % {[console]::beep($notes[$_],$duration[$_]) } Spaceship Siren: 1..10 | % { 370..470 | % { [console]::beep($_,5) }} Talking alien :) 900,500,1000,800,400,600,1200,300,200,500,1100,300 | % {[console]::beep($_,100)} CTP2 Alien: 1..20 | foreach { $rnd = (Get-Random -min 0 -max 20)*100 if ($rnd -eq 0) { sleep -m 10 } else { [console]::beep($rnd,100) } }