This file contains hidden or 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 wup { | |
$desktop = [Environment]::GetFolderPath('Desktop') | |
$initial = Get-ChildItem $desktop -Name | |
Write-Host "Starting winget upgrade..." -ForegroundColor Yellow | |
Start-Process winget -ArgumentList "upgrade --all --silent" -Verb RunAs -Wait | |
Start-Sleep 5 | |
Write-Host "Checking for new icons..." -ForegroundColor Cyan | |
This file contains hidden or 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
$filePath = "$([Environment]::GetFolderPath('MyDocuments'))\PowerReport-$(Get-Date -Format 'yyyy-MM-dd_HH-mm-ss').html"; sudo powercfg /systempowerreport /output $filePath; Invoke-Item $filePath |
This file contains hidden or 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
export type OneCallResponse = { | |
lat: number | |
lon: number | |
timezone: string | |
timezone_offset: number | |
current: CurrentWeather | |
minutely: Minutely[] | |
hourly: Hourly[] | |
daily: Daily[] | |
alerts: Alert[] |
This file contains hidden or 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
protected override InkDrawingAttributes CreateInkDrawingAttributesCore(Brush brush, double strokeWidth) | |
{ | |
InkDrawingAttributes inkDrawingAttributes = new InkDrawingAttributes | |
{ | |
PenTip = PenTipShape.Circle | |
}; | |
SolidColorBrush solidColorBrush = brush as SolidColorBrush; | |
inkDrawingAttributes.Color = solidColorBrush?.Color ?? Colors.Red; | |
inkDrawingAttributes.DrawAsHighlighter = false; | |
inkDrawingAttributes.Size = new Windows.Foundation.Size(strokeWidth * 0.5, strokeWidth * 0.5); |