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
| -- ============================================= | |
| -- Author: Hair, Bryson | |
| -- Create date: 4/27/2021 | |
| -- Description: This stored procedure will send an email from the database with the query results as an html table in the email. | |
| -- ============================================= | |
| ALTER PROCEDURE [dbo].[CFT_SendDBEmailwithTabularQuery] | |
| ( | |
| @qSELECT NVARCHAR(100), --The select part of the sql statement, which can include top X | |
| @fieldlist NVARCHAR(MAX), --Pipe delimited list of fields, which can include aliases | |
| @qFROM NVARCHAR(MAX), --The from part of the sql statment, which can include joins |
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
| sing System.Collections.Concurrent; | |
| using System.IO; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| using System.Web; | |
| /** | |
| * Solution from https://stefanolsen.com/posts/cache-busting-with-asp-net-mvc/ | |
| * https://www.madskristensen.net/blog/cache-busting-in-aspnet/ | |
| * https://stefanolsen.com/posts/cache-busting-2-0-an-update-for-asp-net-core/ |
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 System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Reflection; | |
| public class TypeSafeEnum<T> where T : class | |
| { | |
| TypeSafeEnum(string name, T typeSafeEnum) | |
| { |
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
| DEL /F/Q/S *.* > NUL |
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
| // File: AspireNServiceBusExamples.cs | |
| // This file contains sample code snippets demonstrating: | |
| // 1) Using Azurite to emulate Azure Storage Queues locally | |
| // 2) Configuring NServiceBus for local Azurite Storage Queues transport | |
| // 3) Configuring NServiceBus for production Azure Service Bus transport | |
| // | |
| // Note: | |
| // - Azurite is a local Azure Storage emulator you run via npm: | |
| // npm install -g azurite | |
| // azurite --queue |
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
| /** | |
| * Converts an Angular signal getter into a Promise that resolves once a | |
| * nonnull value is emitted. Internally creates an effect and | |
| * automatically destroys it after resolution to prevent memory leaks. | |
| * | |
| * @param source A function that returns the current value of a signal. | |
| * @returns A Promise that resolves with the first value the signal emits that isn't null | |
| */ | |
| export function waitForSignal<T>(source: () => T): Promise<NonNullable<T>>; |
OlderNewer