Scripting Games 2007 Advanced PowerShell Scores list
To check the Scores in The Scripting Games 2007, I made the following script for the Advanced PowerShell Division :
( I did see also a version with Internet Explorer, on the NG and on a Blog )
[string]$url="http://www.microsoft.com/technet/scriptcenter/funzone/games/games07/psascores.mspx"
$wc = new-Object System.Net.WebClient
$nl = $wc.DownloadString("$url")
$r = [regex]'l">(.*?)</p'
$m = $r.Matches($nl)
$l = $m |% {$_.groups[1].value}
$list = @()
foreach ($i in 13..($l.count -1) ) {
$Record = new-Object -typename System.Object
$Record | add-Member -memberType noteProperty -name Name -Value $m[$i].groups[1].value
[void] $foreach.MoveNext()
$Record | add-Member -memberType noteProperty -name Country -Value $m[$foreach.current].groups[1].value
1..10 |% {[void] $foreach.MoveNext();$Record | add-Member -memberType noteProperty -name "E$_" -Value $m[$foreach.current].groups[1].value}
[void] $foreach.MoveNext();$Record | add-Member -memberType noteProperty -name "Total" -Value $m[$foreach.current].groups[1].value
$list += $record
}
. {
"`nTop Individual Scores: Windows PowerShell Advanced Division"
$nl -match 'as of (.*)</h2>' | out-null
"Standings of : $( $matches[1] )"
$list | ft * -a
"`nCountry's :"
$list | group country
}
If you paste this Code into your console you get the following output, and can play with $list Yourself after that
PoSH> [string]$url="http://www.microsoft.com/technet/scriptcenter/funzone/games/games07/psascores.mspx"
Top Individual Scores: Windows PowerShell Advanced Division
Standings of : February 19, 2007
Name Country E1 E2 E3 E4 E5 E6 E7 E8 E9 E10 Total
---- ------- -- -- -- -- -- -- -- -- -- --- -----
/\/\o\/\/ The Netherlands 10 5 10 5 5 10 10 - 5 - 60
Frank Fattizzi USA 10 5 10 5 5 10 - - 5 - 50
Jacob Gable USA 10 5 10 5 5 10 - - 5 - 50
Jason Clement USA 10 5 10 5 5 10 - - 5 - 50
Joseph Tilley USA 10 5 10 5 5 10 - - 5 - 50
Marco Shaw Canada 10 5 10 5 5 10 - - 5 - 50
Mark Sheppard United Kingdom 10 5 10 5 5 10 - - 5 - 50
Richard Siddaway England 10 5 10 5 5 10 - - 5 - 50
Aaron Peterson USA 10 5 10 5 5 10 - - - - 45
DS316 Scotland 10 5 10 5 5 10 - - - - 45
Gilles LAURENT France 10 5 10 5 5 10 - - - - 45
Jakub Niedzwiedz Poland 10 5 10 5 5 10 - - - - 45
Jeremy Clore USA 10 5 10 5 5 10 - - - - 45
Jason Joy USA 10 5 10 5 5 10 - - - - 45
Russ Pitcher England 10 5 10 5 5 10 - - - - 45
MCNEILLWARE USA 10 5 10 5 5 10 - - - - 45
Simon Dalling England 10 5 10 5 5 10 - - - - 45
Yves PASCAULT France 10 5 10 5 5 10 - - - - 45
Alex Duckworth Australia 10 5 10 5 - 10 - - - - 40
Alex Chan USA 10 5 0 5 5 10 - - 5 - 40
Andy Schneider USA 10 5 - 5 5 10 - - 5 - 40
Chi Chi USA 10 5 10 5 - 10 - - - - 40
Joel Bombardier Switzerland 10 5 0 5 5 10 - - 5 - 40
Mike Holden Albania 10 5 10 10 5 - - - - - 40
Raja Mohamad Fairuz Malaysia 10 5 10 5 0 10 - - - - 40
Sanket Shetye India 10 5 10 5 - 10 - - - - 40
Shay Levy Israel 10 5 10 5 0 10 - - - - 40
Sander Rijken The Netherlands 10 5 10 0 5 10 - - - - 40
Wrighty United Kingdom 10 5 10 5 5 - - - - - 35
Arnaud PETITJEAN France 10 5 10 5 - - - - - - 30
Arizona Claude Edwards Jamaica 10 5 10 5 - - - - - - 30
David Saxon United Kingdom 10 5 10 5 - - - - - - 30
Jean - JMST Belgium 10 5 10 5 - - - - - - 30
Frodekommode Norway 10 5 10 5 - - - - - - 30
Gaurhoth USA 10 5 10 5 - - - - - - 30
SUF Hungary 10 5 10 5 - - - - - - 30
Hugo Crossley Malawi 10 5 10 5 - - - - - - 30
Nagy János Hungary 10 5 10 5 - - - - - - 30
Joe Topjian USA 10 5 10 5 - - - - - - 30
Jerzy Prusinski Poland 10 5 10 5 - - - - - - 30
Kasey Nichols USA 10 5 10 5 - - - - - - 30
Michael Dickey USA 10 5 10 5 - - - - - - 30
Peggy Peng PRC 10 5 10 5 - - - - - - 30
Rhoderick Milne United Kingdom 10 5 10 5 - - - - - - 30
Reinhard Lehrbaum Austria 10 5 10 5 - - - - - - 30
Robin LEMESLE France 10 5 10 5 - - - - - - 30
Panderon Egypt 10 5 10 5 - - - - - - 30
Stefan Suesser Germany 10 5 10 5 - - - - - - 30
Steve Kulyk Canada 10 5 10 5 - - - - - - 30
Thorbjörn Sjövold Sweden 10 5 10 5 - - - - - - 30
Tobias Reinwald Germany 10 5 10 5 - - - - - - 30
Tom Glowacki USA 10 5 10 5 - - - - - - 30
Stephen Correia - tumtum73 USA 10 5 10 5 - - - - - - 30
Umesh Chandra Thakur India 10 5 10 5 - - - - - - 30
Keun Hyung, Lee South Korea 10 5 10 5 - - - - - - 30
Antony Smoothey England 10 5 10 - - - - - - - 25
Alistair Young USA 10 5 0 5 0 0 - - - - 20
Chris H (C2) USA 0 5 10 5 - - - - - - 20
Vasily Gusev Russia - - - 5 5 10 - - - - 20
Huub van der Klooster The Netherlands 10 5 0 5 - - - - - - 20
Kunio Hodozuka Japan 10 5 - 5 - - - - - - 20
Micra Poland - 5 10 5 - - - - - - 20
Necip TOMURCUK Turkey 10 5 - 5 - - - - - - 20
Paul M Marshall Australia 10 5 0 5 - - - - - - 20
Vinicius Canto Brazil 10 5 - 5 - - - - - - 20
Xavier Courchinoux France 10 - 10 - - - - - - - 20
David M. Williams Australia 10 5 - - - - - - - - 15
Andrei Fevralev USA - - 10 5 - - - - - - 15
Rob van der Woude The Netherlands - - 10 5 - - - - - - 15
Captain Literal United Kingdom 10 0 - 5 - - - - - - 15
Pake73 Sweden - - 10 5 - - - - - - 15
Pavol Popovic USA 10 5 - - - - - - - - 15
Richard_h9 Australia - - 10 5 - - - - - - 15
Anonymous Australia - - 10 5 - - - - - - 15
Sysadmin Stickler USA - - 10 - - - - - - - 10
TLH USA - 5 - 5 - - - - - - 10
Fj++ Belgium - - 0 5 5 - - - - - 10
Christian Pfeiffer Austria - 5 - - - - - - - - 5
Kent Finkle USA - 5 - - - - - - - - 5
MartinH Sweden - - - 5 - - - - - - 5
Rick Tatem USA - - 0 5 - - - - - - 5
Kevin Oie USA - 0 - - - - - - - - 0
Country's :
Count Name Group
----- ---- -----
4 The Netherlands {/\/\o\/\/, Sander Rijken, Huub van der Klooster, Rob van der Woude}
26 USA {Frank Fattizzi, Jacob Gable, Jason Clement, Joseph Tilley...}
2 Canada {Marco Shaw, Steve Kulyk}
5 United Kingdom {Mark Sheppard, Wrighty, David Saxon, Rhoderick Milne...}
4 England {Richard Siddaway, Russ Pitcher, Simon Dalling, Antony Smoothey}
1 Scotland {DS316}
5 France {Gilles LAURENT, Yves PASCAULT, Arnaud PETITJEAN, Robin LEMESLE...}
3 Poland {Jakub Niedzwiedz, Jerzy Prusinski, Micra}
5 Australia {Alex Duckworth, Paul M Marshall, David M. Williams, Richard_h9...}
1 Switzerland {Joel Bombardier}
1 Albania {Mike Holden}
1 Malaysia {Raja Mohamad Fairuz}
2 India {Sanket Shetye, Umesh Chandra Thakur}
1 Israel {Shay Levy}
1 Jamaica {Arizona Claude Edwards}
2 Belgium {Jean - JMST, Fj++}
1 Norway {Frodekommode}
2 Hungary {SUF, Nagy János}
1 Malawi {Hugo Crossley}
1 PRC {Peggy Peng}
2 Austria {Reinhard Lehrbaum, Christian Pfeiffer}
1 Egypt {Panderon}
2 Germany {Stefan Suesser, Tobias Reinwald}
3 Sweden {Thorbjörn Sjövold, Pake73, MartinH}
1 South Korea {Keun Hyung, Lee}
1 Russia {Vasily Gusev}
1 Japan {Kunio Hodozuka}
1 Turkey {Necip TOMURCUK}
1 Brazil {Vinicius Canto}
PoSH>
As I did this 2 times allready on my blog ( Hey PowerShell, how popular is this Baby Name ? )
this might look familiar, but also might handy to check if your score is updated as I added a datecheck to see if it is updated ;-)
Enjoy,
Greetings /\/\o\/\/