- ½ cup sugar
- 3 Tbsp cocoa powder
- 2 Tbsp cornstarch
- 2 egg yolks
- ½ cup heavy cream
- 2 ½ cups whole milk
- 4 oz chopped dark chocolate
- 5 Tbsp unsalted butter
- ½ tsp espresso powder
- 1 tsp vanilla extract
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
// Reference https://github.com/DamianEdwards/MinimalApiPlayground/blob/main/src/MinimalApiPlayground/Program.cs | |
// Example 1: Document database mapping | |
// Documents.cs | |
public static class MapDocuments | |
{ | |
public static ActionResult<Task<T>> MapDocument<T>(this IEndpointRouteBuilder app) | |
where T : IDocument | |
{ | |
app.MapGet(typeof(T).Name + "/{id}", async (string id, IDocumentRepository repository) => |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ConsoleApp1 | |
{ | |
class Program |
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
/* Checks if the issuer of a certificate is a | |
* Certificate Authority, or if the certificate is the same | |
* as the issuer (and therefore it doesn't need to be a CA). | |
* | |
* Returns true or false, if the issuer is a CA, | |
* or not. | |
*/ | |
static bool | |
check_if_ca(gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, | |
unsigned int *max_path, unsigned int flags) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Security.Cryptography; | |
namespace HashChallenge | |
{ |