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
version: '3' | |
services: | |
rabbitMq: | |
image: rabbitmq:3-management | |
ports: | |
- "15672:15672" | |
- "5672:5672" | |
- "5671:5671" | |
environment: | |
RABBITMQ_DEFAULT_PASS: pass |
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
public static class EnumerableExtensions | |
{ | |
public static IEnumerable<IEnumerable<T>> Batches<T>(this IEnumerable<T> items, int batchSize) | |
{ | |
if (batchSize <= 0) | |
{ | |
throw new ArgumentException("Batch size must be greater than 0"); | |
} | |
var itemsList = items as IList<T> ?? items.ToList(); |
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.Globalization; | |
using Android.Graphics; | |
using Android.Graphics.Drawables; | |
using Cirrious.CrossCore.Converters; | |
using DecisionBuddy.Controls; | |
using DecisionBuddy.Controls.Utils; | |
using DecisionBuddy.Core.Model; | |
namespace DecisionBuddy.UI.Droid.Converters |
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
// Ref: http://www.codenutz.com/https-redirect-asp-net-core-using-owin-middleware/ | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Builder; | |
namespace SomeNamespace | |
{ | |
public class HttpsRedirectMiddleware { | |