This file contains hidden or 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
if (!(Test-Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons')) { New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons' -Force } ; New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons' -Name 29 -Value "$env:SystemRoot\System32\imageres.dll,197" -PropertyType String -Force ; Stop-Process -Name explorer -Force ; $f="$env:USERPROFILE\AppData\Local\IconCache.db"; if(Test-Path $f){attrib -s -r -h $f; Remove-Item $f -Force}; Start-Process explorer; |
This file contains hidden or 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
void main() { | |
final templateUrl = '{host}/api/v3/{container}/{resourceId}'; | |
final params = <String, dynamic>{ | |
'host': 'www.api.com', | |
'container': 'books', | |
'resourceId': 10 | |
}; | |
print(templateUrl.asTemplate(params)); // www.api.com/api/v3/books/10 |