Testing alignments embedded in github
<style type="text/css">div { border: 2px solid blue } </style>
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
/* | |
I use these a lot to fix paths in files for github, like markdown links. | |
*/ | |
{ | |
"🐒🦍path: Wraps selected text with a file uri": { | |
"prefix": "insertFileUrl fileUrl", | |
"description": "🦍 wraps selected text with a file url like: <file:///foo.txt> . Note: Currently wraps, does not convert spaces", | |
"body": [ | |
"<file:///${TM_SELECTED_TEXT:foobar.txt}>$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
Show hidden characters
{ | |
/* | |
for TMDL syntax highlighting in VS Code: https://marketplace.visualstudio.com/items?itemName=analysis-services.TMDL | |
About PBI JSON Schemas: | |
- https://github.com/microsoft/powerbi-desktop-samples/tree/main/item-schemas | |
More links related to PBIR or schemas: | |
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
filter MdFormat-EscapePath { | |
<# | |
.SYNOPSIS | |
make safe markdown style links. convert paths to work as urls and console clickable urls like: <file:///{0}>' | |
.example | |
> 'dir\some Item.md' | MdFormat-EscapePath | |
dir/some%20Item.md | |
#> | |
$_ -replace ' ', '%20' -replace '\\', '/' |
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 CalcRelativeDays { | |
param( | |
[datetime]$BaseDate, | |
[datetime]$InputDate, | |
# default returns totalDays, this returns the raw [TimeSpan] | |
[switch]$PassThru | |
) | |
if($PassThru){ | |
return ($InputDate - $BaseDate) | |
} |
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
#Requires -Version 7 | |
using namespace System.Collections.Generic | |
using namespace System.Text | |
using namespace System.Text.Json | |
using namespace System.Text.Json.Serialization | |
$assembly = Add-type -AssemblyName System.Text.Json -PassThru -ea 'stop' | |
function AutoJson { | |
<# |
The rest of the code is here: Write.Html.pq
// aliases
Write.Format = String.Write.Format,
Write.Element = Write.Html.Element,
Write.Key = Write.Html.KeyValue,
Tag = Write.Html.Element,
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
using namespace System.Collections.Generic | |
Import-module Pansies | |
function Dotfiles.Select-Some { | |
<# | |
.SYNOPSIS | |
select 1 item, 5, or a specific count. | |
.NOTES | |
- [ ] future: rewrite using steppable pipeline for an earlier exit | |
.EXAMPLE |
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
{ | |
// settings related to pwsh terminal | |
"powershell.enableProfileLoading": true, | |
"terminal.integrated.defaultProfile.windows": "Pwsh🐒", // "Pwsh🐒", | |
// The terminal profile to use for automation-related terminal usage like tasks and debug. This setting will currently be ignored if `terminal.integrated.automationShell.windows` (now deprecated) is set. | |
"terminal.integrated.automationProfile.windows": { | |
"args": [ | |
"-NoLogo" | |
], |
NewerOlder