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
| 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 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
| <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 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
| <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 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
| // 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 | |
| { |
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
| Get-ChildItem -Path . -Filter *.cs | Where-Object { $_.Name -match "^\d{14}_.*\.cs" } | Where-Object Name -NotLike "*Designer*"| Select-Object -ExpandProperty Name | Set-Content -path D:\Downloads\migrations.txt |
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
| Get-NetConnectionProfile -InterfaceAlias vEthernet* | Set-NetConnectionProfile -NetworkCategory Private |
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
| /* | |
| * Based on dotnet github issue https://github.com/dotnet/docs/issues/14265 | |
| */ | |
| using Microsoft.ML; | |
| using Microsoft.ML.Data; | |
| using RestaurantViolationsML.Model; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; |
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
| # Using PowerShell, find which process is using the port to solve port in use error. | |
| $portNumber = 1433 | |
| Get-Process -Id (Get-NetTCPConnection -LocalPort $portNumber).OwningProcess |