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
| name: Deploy to Azure Container Apps | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| env: | |
| AZURE_CONTAINER_REGISTRY: <NAME> | |
| CONTAINER_APP_NAME: <NAME> |
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
| <Project> | |
| <PropertyGroup> | |
| <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <PackageVersion Include="Newtonsoft.Json" Version="13.0.3" /> | |
| <PackageVersion Include="Serilog" Version="4.1.0" /> | |
| <PackageVersion Include="Polly" Version="8.5.0" /> | |
| </ItemGroup> | |
| </Project> |
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
| import config from "./config.js"; | |
| document.addEventListener("DOMContentLoaded", () => { | |
| const fileInputMultipart = document.getElementById("fileInputMultipart"); | |
| const uploadButtonMultipart = document.getElementById( | |
| "uploadButtonMultipart" | |
| ); | |
| const pauseResumeButton = document.getElementById("pauseResumeButton"); | |
| const uploadProgressMultipart = document.getElementById( | |
| "uploadProgressMultipart" |
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 BenchmarkDotNet.Attributes; | |
| namespace BinarySearch.Benchmark; | |
| [MemoryDiagnoser] | |
| public class SearchBenchmark | |
| { | |
| private static readonly int[] Numbers = Enumerable.Range(1, 1_000_000).ToArray(); | |
| [Params(333_333, 777_777)] |
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 Result | |
| { | |
| protected internal Result(bool isSuccess, Error error) | |
| { | |
| if (isSuccess && error != Error.None) | |
| { | |
| throw new InvalidOperationException(); | |
| } | |
| if (!isSuccess && error == Error.None) |
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
| root = true | |
| # C# files | |
| [*.cs] | |
| #### Core EditorConfig Options #### | |
| # Indentation and spacing | |
| indent_size = 4 | |
| indent_style = space |
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
| [*.cs] | |
| # IDE0058: Expression value is never used | |
| dotnet_diagnostic.IDE0058.severity = none | |
| # IDE0053: Use expression body for lambda expressions | |
| dotnet_diagnostic.IDE0053.severity = none | |
| csharp_indent_labels = one_less_than_current | |
| csharp_using_directive_placement = outside_namespace:error | |
| csharp_prefer_simple_using_statement = true:error |
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
| name: Publish Development 🚀 | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| AZURE_WEBAPP_NAME: dev-api-trainersphere |