Pwsh: Fuzzy Select Colors With Preview
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/Pwsh-Select-Colors-2021-09-04-.gif)
- queries the color provider with partial matches
- pipes to
Out-Fzf
or fzf for the preview and selection
Bitwise operators
Generated using a Pwsh script
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/2021-10-13-visualizing-bitwise-operators-or-math.png)
ShouldProcess
formatting
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/ShouldProcess-WithColor.png)
More Fzf
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/quick-tip-┐-Get-Item-┐-works-with-ansi-escape-colors-apps-2021-10-24-5-colorsNN.gif)
PSReadline: Auto-expand Aliases in the CLI
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/PSReadline-🖥️-Expand-Aliases-and-surround-CLI-mini-2021-06-10.gif.gif)
alt+shift+(
surrounds selection, or the entire command in parenthesisalt+shift+%
runsInvoke-Formatter
to format the code, including alias replacement
Pester5 ForEach
| `code` snippet
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/vscode-┐-pester-snippet-2021-10-13-def-iter3.gif)
Using Notebooks: for Github issue queries
Created a list of queries for the release of https://vscode.dev
ninmonkey/VS Code on the Web – Cheat Sheet – Custom urls.md
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/vscode-┐-github-issues-query-notebooks-2021-10-13-ffm-small-1024x828.gif)
Power Query Web.Contents
wrapper for Web API / REST calls
- WebRequest_Simple.pq
- enables
ManualStatusHandling
for better errors ( This is important for any REST APIs) - detects whether it’s
Json
orhtml
, and returns ajson
record if existing - Always displays the response as plain-text as
response_text
- Lets you inspect request info, like headers used.
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/ninmonkeylib-┐-Web-Request-simple-2021-10-13-v3.gif)
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/WebRequest_Simple-error-codes-2021-10-18-203443-1.png)
Power Query: Import from an external file
Experimenting with console formatting
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/console-color-formatting-for-build-script-2021-10-14.png)
Jumps to the error’s location, ex: line 163 Importing lib
Select a ton of properties, saving names as an array
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/pwsh-┐-select-from-a-variable-list-then-filter-data-2021-10-23-enc2.gif)
Hashtables: Command line formatting
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/Pwsh-💻-Format-Dict-🎨-Screenshot-2021-10-12-115246-3.png)
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/pretty-printing-hashtables-to-console-2021-10-11-193338-2.png)
DAX: Syntax highlight bracket pairs
- syntax highlighting is from the addon: DAX Languge Support
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/Dax-Highlight-┐-Bracket-Pairs-2021-10-10-defaults.gif)
"[dax-language]": {
"editor.bracketPairColorization.enabled": true, //colorize the pairs
"editor.guides.bracketPairs": true, // colorize vertical lines
"editor.matchBrackets": "always",
"editor.minimap.enabled": false,
"editor.lineNumbers": "off",
},
},
Pwsh: Prompt that summarizes recent errors
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/Pwsh-Recent-Errors-ninmonkey-2021-09-04--1024x506.gif)
Pwsh: Colorized Directory Listing
- Using terminal
wt
,Pwsh
as the shell, and module: pansies for color - The current directory is a gradient, the boldest part is the most important part of the path.
cd
-ing to a directory will summarize the new directory, without “spamming” the user when there’s a lot of items- Folders first, sorted by most recently modified
- Files second, sorted most recently
- Icon shows filetype
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/2021-10-10-command-line.png)
DAX: Conditionally Toggle Button using Measure
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/Power-BI-Slicer-as-a-Toggle-Button-2021-06-20.gif.gif)
WordPress Image scaling
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/wordpress-┐-image-height-css-issue-with-gallery-2021-10-23.gif)
![](https://ninmonkeys.com/blog/wp-content/uploads/2021/10/wordpress-┐-image-height-css-issue-2021-10-23-1024x439.gif)