Users page - username search autocomplete.
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.Diagnostics; | |
| using System.Text; | |
| using Amazon.Runtime; | |
| using Amazon.Runtime.CredentialManagement; | |
| using Aspire.Hosting.AWS; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Logging; |
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
| locals { | |
| region = "eu-north-1" | |
| } | |
| resource "random_pet" "user_pool_name" { | |
| length = 2 | |
| prefix = "test" | |
| } | |
| resource "aws_cognito_user_pool" "cognito" { |
I hereby claim:
- I am kralizek on github.
- I am kralizek (https://keybase.io/kralizek) on keybase.
- I have a public key ASBU7qj7MepYNyG_AyK8etVC11-Db72Px-yxzanJaGvQmgo
To claim this, I am signing this object:
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 Amazon.SQS; | |
| var builder = WebApplication.CreateBuilder(args); | |
| builder.Configuration.AddInMemoryCollection(new Dictionary<string, string> { | |
| ["AWS:Profile"] = "LocalStack", | |
| ["AWS:Region"] = "us-east-1" | |
| }); | |
| var options = builder.Configuration.GetAWSOptions(); |
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.CommandLine; | |
| using Amazon; | |
| using Amazon.S3; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Logging; | |
| var profileOption = new Option<string>("--profile", getDefaultValue: () => "default", description: "The name of the profile to use to access AWS services."); | |
| var regionOption = new Option<string>("--region", getDefaultValue: () => RegionEndpoint.EUWest1.SystemName, description: "The region where AWS services are located."); |
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.Diagnostics; | |
| using NUnit.Framework; | |
| [SetUpFixture] | |
| public class RootFixtureSetup | |
| { | |
| [OneTimeSetUp] | |
| public void OneTimeSetUp() => Debug.WriteLine("RootFixtureSetup:OneTimeSetUp"); | |
| [OneTimeTearDown] |
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
| Enumerable.Range(1, 100) | |
| .Select(CheckModulo) | |
| .Select(FizBuz) | |
| .ToList() | |
| .ForEach(Console.WriteLine); | |
| static (bool isFizz, bool isBuzz, int n) CheckModulo(int n) | |
| { | |
| return (n % 3 == 0, n % 5 == 0, n); | |
| } |
Empty file to get a better name for the gist
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
| public class SmartAutoDataAttribute : AutoDataAttribute | |
| { | |
| public SmartAutoDataAttribute() : base(() => CreateFixture(null)) { } | |
| public SmartAutoDataAttribute(Type type, string methodName) : base(CreateFixtureWithMethod(type, methodName)) { } | |
| private static Func<IFixture> CreateFixtureWithMethod(Type type, string methodName) | |
| { | |
| if (type == null) | |
| { |
NewerOlder