Snippets

A collection of little snippets.

ASP.NET
<script src="<%=Page.ResolveUrl("~")%>path to JavaScript file (no leading slash"></script>

ASP.NET WF JavaScript link 

<link rel="stylesheet" href="<%=Page.ResolveUrl("~")%>path to CSS file (no leading slash)">

ASP.NET WF CSS link 

AVR
DclDB DGDB DBName("<DBName>") 

DclDiskFile  <PgmFileName> +
      Type(*Update ) +
      Org(*Indexed) +
      Prefix(<FileAlias>) +
      File("<Library/File>") +
      DB(DGDB) +
      ImpOpen(*No) 
      AddRec(*Yes)

DclDB/DclDiskFile for update 

DclDB DGDB DBName("<DBName>") 

DclDiskFile <PgmFileName> +
      Type(*Input) +
      Org(*Indexed) +
      Prefix(<Alias>) +
      File("<Library/File>") +
      DB(DGDB) +
      ImpOpen(*No) 

DclDB/DclDiskFile for input 

Bash
#!/usr/bin/env bash

Bash shebang 

Windows
taskkill /im chrome.exe /f

Kill Chrome tasks on Windows