Skip to content

Instantly share code, notes, and snippets.

View dcgithub's full-sized avatar
💭
for those about to rock!..

dcgithub

💭
for those about to rock!..
  • None
  • Brisbane
View GitHub Profile
function Get-XmlFileTreeAppend
{
param(
[Parameter(ParameterSetName='Path', Mandatory=$true, Position=0, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)]
[string[]]
${Path},
[Parameter(ParameterSetName='LiteralPath', Mandatory=$true, ValueFromPipelineByPropertyName=$true)]
[Alias('PSPath')]
[string[]]
@dcgithub
dcgithub / tidy.js
Created February 12, 2023 01:37 — forked from agibsonsw/tidy.js
JS to tidy/align spaces
function tidySpaces() {
var olCode, spans, i, span_textnode, span_text, span_next, offLeft, newLeft;
if (document.getElementsByClassName) {
spans = document.getElementsByClassName('tidy');
if (spans != 'undefined' && spans.length) {
for ( i = 0; i < spans.length; i++ )
spans[i].style.paddingLeft = (spans[i].style.paddingLeft == '0px') ?
spans[i].prevValue : '0px';
return;
}