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 async Task<TestContainerConnectionStrings> CreateAndInitDbStackAsync() | |
| { | |
| _network = new NetworkBuilder().Build(); | |
| var mariaDbCnfPath = Path.GetFullPath("./Setup/docker/mariadb"); | |
| if (!Directory.Exists(mariaDbCnfPath)) | |
| { | |
| throw new FileNotFoundException("Required mariadb conf dir not found"); | |
| } |
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
| "test": "for file in $(find ./tests -name '*.csproj'); do dotnet test $file || exit; done" |
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
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1="\u \[\033[32m\]\w\$(parse_git_branch)\[\033[00m\]\n$ " | |
| # removes annoying startup message | |
| export BASH_SILENCE_DEPRECATION_WARNING=1 |
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 bool IsCroatianPostOfficeNumberWithHRPrefix(string postCode) | |
| { | |
| // ref: https://hr.wikipedia.org/wiki/Po%C5%A1tanski_broj | |
| if (postCode.StartsWith("HR")) | |
| { | |
| var postCodeWithoutHR = postCode.Substring(2); | |
| if ( postCodeWithoutHR.StartsWith("10") |
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.IO; | |
| using System.Threading.Tasks; | |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.Hosting; | |
| namespace StartupIConfigurationInjectionProblem | |
| { | |
| public class Program |
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
| USE [HobbyDB] | |
| GO | |
| /****** Object: Table [dbo].[AspNetRoleClaims] Script Date: 6/4/2018 10:18:03 PM ******/ | |
| SET ANSI_NULLS ON | |
| GO | |
| SET QUOTED_IDENTIFIER ON | |
| GO | |
| IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[AspNetRoleClaims]') AND type in (N'U')) | |
| BEGIN | |
| CREATE TABLE [dbo].[AspNetRoleClaims]( |
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.Threading.Tasks; | |
| using Xunit; | |
| namespace PuppeteerSharp.Extensions.Tests | |
| { | |
| public class Documentation | |
| { | |
| [Fact] | |
| public async Task download_Chromium() |
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 AspNetCoreRateLimit; | |
| using MedsProcessor.Scraper; | |
| using MedsProcessor.WebAPI.Extensions; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; | |
| namespace MedsProcessor.WebAPI | |
| { |
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.Generic; | |
| using System.IO; | |
| using System.Reflection; | |
| using System.Threading.Tasks; | |
| using AspNetCoreRateLimit; | |
| using MedsProcessor.Common.Models; | |
| using MedsProcessor.Downloader; | |
| using MedsProcessor.Parser; | |
| using MedsProcessor.Scraper; |
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 MedsProcessor.WebAPI.Infrastructure; | |
| using Microsoft.AspNetCore.Diagnostics; | |
| using Microsoft.AspNetCore.Mvc; | |
| namespace MedsProcessor.WebAPI.Controllers | |
| { | |
| [ApiVersionNeutral, Route("api/[controller]")] | |
| public class ErrorController : ApiControllerBase | |
| { | |
| /// <summary> |
NewerOlder