Wednesday, 16 March 2016

CSS: How do I disable an anchor?

I did not know it could be this easy. I was using an angular directive (a-disabled), but there is a simple css operator to the perform the same function

.disableClick{
    pointer-events: none;
}

Thursday, 10 March 2016

PowerShell: How do I recursively rename files in a folder

This is a great example of PowerShell goodness - an awesome one liner.

Get-ChildItem -File -Recurse | % { Rename-Item -Path $_.PSPath -NewName $_.Name.replace("<FindValue>","<NewValue>")}