View tidy.js
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 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; | |
} |
View XmlFileTreeGenerators.ps1
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 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[]] |
View semicolon.js
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
; |