Skip to content

Instantly share code, notes, and snippets.

@IISResetMe
Last active December 3, 2015 18:35
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 IISResetMe/0b8033cb7382d88208b0 to your computer and use it in GitHub Desktop.
Save IISResetMe/0b8033cb7382d88208b0 to your computer and use it in GitHub Desktop.
Poor Man's Singleton
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