Skip to content

Instantly share code, notes, and snippets.

View VisualBean's full-sized avatar
🐵

Alex Wichmann VisualBean

🐵
View GitHub Profile
@cilliemalan
cilliemalan / asyncawaiter.cs
Created November 18, 2019 12:01
An awaiter for CancellationToken
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Core
{
@VisualBean
VisualBean / Entity.cs
Created December 16, 2018 23:24
Azure Table Storage Abstraction that abstracts your model away from the db. The model does not know or care about persistence. (Microsoft.Windows.Azure.Storage < v9.4.0)
public interface IEntity<T>
{
T Id { get; }
}
public abstract class Entity<T> : IEntity<T>
{
private int? _requestedHashCode;
public T Id { get; protected set;}
@kizzx2
kizzx2 / docker-compose.yml
Last active May 2, 2024 18:10
Restart a docker container periodically with docker-compose
version: '3'
services:
app:
image: nginx:alpine
ports: ["80:80"]
restart: unless-stopped
restarter:
image: docker:cli
volumes: ["/var/run/docker.sock:/var/run/docker.sock"]
@AlbertoMonteiro
AlbertoMonteiro / 01.md
Last active January 23, 2024 10:11
Migration from Moq to NSubstitute