Last active
December 3, 2015 18:35
-
-
Save IISResetMe/0b8033cb7382d88208b0 to your computer and use it in GitHub Desktop.
Poor Man's Singleton
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param($u)(&{if($c-is[System.Net.WebClient]){$c}else{($global:c=New-Object System.Net.WebClient)}}).DownloadString($u) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment