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
# Changed Type1 is previous transformation name | |
# FilteredDate is new column added | |
# [Date] is name of column containing dates in text format | |
= Table.AddColumn(#"Changed Type1", "FilteredDate", each try Value.Is(Date.From([Date]), type date) otherwise false ) |
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
# expression for date column in Derived Column Task | |
TRIM(DateUpdatedstring) == "" ? NULL(DT_DATE) : (DT_DATE)DateUpdatedstring |
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
<style> | |
@media screen { | |
#printSection { | |
display: none; | |
} | |
} | |
@media print { | |
body * { | |
visibility: hidden; | |
} |
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
# default SHA256 | |
(Get-FileHash -Path filepath).Hash -eq "SHA256Hash" | |
# MD5 Hash | |
(Get-FileHash -Path filepath -Algorithm MD5).Hash -eq "MD5hash" | |
# SHA512 Hash | |
(Get-FileHash -Path filepath -Algorithm MD5).Hash -eq "SHA512hash" |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Table input</title> | |
<style> | |
table { | |
width: 100%; |
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
private static StringValue? SearchString(string searchString, WorkbookPart workbookPart, WorksheetPart worksheetPart) | |
{ | |
var sharedTable = workbookPart.SharedStringTablePart; | |
var sharedStringValues = new List<SharedStringItem>(); | |
if (sharedTable != null) | |
{ | |
sharedStringValues = | |
sharedTable.SharedStringTable.Elements<SharedStringItem>().ToList(); | |
} |
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
<link href="~/lib/datatables/buttons.bootstrap5.min.css" rel="stylesheet" /> | |
<link href="~/lib/datatables/dataTables.bootstrap5.min.css" rel="stylesheet" /> | |
<script src="~/lib/datatables/jquery.dataTables.min.js"></script> | |
<script src="~/lib/datatables/dataTables.bootstrap5.min.js"></script> | |
<script src="~/lib/jszip/jszip.min.js"></script> | |
<script src="~/lib/datatables/js/dataTables.buttons.min.js"></script> | |
<script src="~/lib/datatables/js/buttons.colVis.min.js"></script> | |
<script src="~/lib/datatables/js/buttons.html5.min.js"></script> |
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
<link href="https://fonts.googleapis.com/css2?family=Libre+Barcode+39+Extended+Text&display=swap" rel="stylesheet"> | |
<style> | |
.barcode39 { | |
font-family: 'Libre Barcode 39 Extended Text', cursive; | |
font-size: 40px; | |
} | |
</style> |
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
// https://stackoverflow.com/questions/53878000/how-to-migrate-identity-users-from-a-mvc5-app-to-a-asp-net-core-2-2-app | |
/* We need a way to differentiate what users are using the new hash version or not. | |
One way is to add a new property to IdentityUser: | |
*/ | |
using Microsoft.AspNetCore.Identity; | |
public class ApplicationUser: IdentityUser | |
{ |
NewerOlder