Loop | Return | Continue | Break |
---|---|---|---|
Normal Expectation | Exit Scope | Next Item | Exit Loop |
.foreach{} | Next Item | Break Scopes / Next Item of Parent Loop | Break Scopes / Exit Parent Loop |
foreach ($y in $x) | Exit Scope | Next Item | Exit Loop |
for ($i;$i -lt 5;$i++) | Exit Scope | Next Item | Exit Loop |
Foreach-Object -InputObject @() | Next Item | Break Scopes / Next Item of Parent Loop | Break Scopes / Exit Parent Loop |
Switch | Exit Scope | Next Item | Exit Switch |
While |
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
#root.root {--tabs-pinned-height: 32px;} | |
#root.root {--tabs-pinned-width: 32px;} | |
#root.root {--tabs-lvl-opacity: 0.23;} | |
#root.root {--frame-scrollbar-color: rgba(255,255,255,0.275);} | |
#root.root {--border: rgba(33,33,33,0.392);} | |
#root.root {--tabs-height: 2.15rem;} | |
#root.root {--tabs-close-btn-margin: 0.2rem;} | |
#root.root {--general-margin: 0.1rem;} | |
#root.root {--general-border-radius: 0.5rem;} | |
#root.root {--tabs-font: 0.8rem sans-serif;} |
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
function Set-Wallpaper { | |
<# | |
.SYNOPSIS | |
Applies a specified wallpaper to the current user's desktop | |
.EXAMPLE | |
Set-WallPaper -Image "C:\Wallpaper\Default.jpg" | |
#> | |
[CmdletBinding()] | |
param( |
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
function Test-Checksum { | |
[CmdletBinding()] | |
[Alias('checksum')] | |
param( | |
[Parameter(Mandatory, Position = 0)] | |
[string] | |
$Path, | |
[Parameter(Mandatory, Position = 1)] | |
[string] |
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
if (-not ('System.Drawing.Bitmap' -as [type])) { | |
Add-Type -AssemblyName System.Drawing | |
} | |
[System.Drawing.Bitmap] $Image = [System.Drawing.Bitmap]::new(100, 100) | |
$Image.SetResolution(96, 96) | |
[System.Drawing.Graphics] $DrawingSurface = [System.Drawing.Graphics]::FromImage($Image) | |
$DrawingSurface.PageScale = 1.0 |
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
function Start-Noita { | |
<# | |
.SYNOPSIS | |
Starts Noita from a PowerShell prompt, optionally with a specific set seed for a new game. | |
.DESCRIPTION | |
To use this function, copy and paste the complete function definition into a PowerShell | |
session, and then invoke it with `Start-Noita`. Supply `-Seed somevalue` if you would like | |
to run a specific seed (see the examples below). | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder