Skip to content

Instantly share code, notes, and snippets.

View teleksterling's full-sized avatar

Rick teleksterling

  • Melbourne, Australia
  • 10:10 (UTC +11:00)
View GitHub Profile
@teleksterling
teleksterling / Utils.txt
Last active May 4, 2024 07:38
Excel Lambda Utility Functions (Excel Labs / Advanced Formula Environment)
Header = LAMBDA(Table, TAKE(Table, 1));
Data = LAMBDA(Table, DROP(Table, 1));
ConstArray = LAMBDA(value, rows, columns,
EXPAND(value, rows, columns, value)
);
Reverse = LAMBDA(array,
LET(seq, SEQUENCE(ROWS(array)), SORTBY(array, seq, -1))
function Add-EnvPath {
param(
[Parameter(Mandatory=$true)]
[string] $Path,
[ValidateSet('Machine', 'User', 'Session')]
[string] $Container = 'Session'
)
if ($Container -ne 'Session') {