Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Hansen polterguy

View GitHub Profile
View gist:5312b16f7abc9326038965d79c2f4820
<h1 mat-dialog-title>Login</h1>
<div mat-dialog-content>
<mat-form-field>
<mat-label>Username</mat-label>
<input
matInput
[(ngModel)]="username">
@polterguy
polterguy / gist:f16f74fdffae67f762715ba5d60f9177
Last active Feb 14, 2021
magic-docker-compose-example.yml
View gist:f16f74fdffae67f762715ba5d60f9177
version: "3.3"
services:
db:
image: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ThisIsNotAGoodPassword
volumes:
@polterguy
polterguy / HttpClient.cs
Created May 10, 2019
A C# class to easily invoke HTTP REST invocations with one line of code
View HttpClient.cs
/*
* Usage ...
* var foo = new SomeType { /*.Decorate instance here ... */ };
* var result = await Client.PostAsync<SomeType>("https://some-url.com/api", foo);
*/
using System;
using System.Net.Http;
using System.Threading.Tasks;