Skip to content

Instantly share code, notes, and snippets.

{
"env": {
"browser": true,
"es6": true
},
"extends": ["plugin:react/recommended", "airbnb"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
@ydang204
ydang204 / HFDashboardAuthFilter.cs
Created November 14, 2019 03:25 — forked from ndc/HFDashboardAuthFilter.cs
Hangfire dashboard authorization filter using basic authentication and relying on browser support to allow user to input username and password.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Hangfire.Annotations;
using Hangfire.Dashboard;
using Microsoft.AspNetCore.Http;
namespace MyApp.ScheduledTask
{
@ydang204
ydang204 / IntegrateNswag.md
Created March 30, 2019 16:44
How to integrate with NSWAG and generate angular client in aspnet core

Integrate with NSWAG in NET Core

1. Install NSWAG middle ware

dotnet add package NSwag.AspNetCore --version 12.0.20

2. Register NSWAG services and middleware

Current working directory: DatingApp.Api

@ydang204
ydang204 / angular-nswag.json
Created March 30, 2019 16:41
Angular document for nswag
{
"runtime": "NetCore21",
"defaultVariables": "Configuration=Debug",
"swaggerGenerator": {
"fromSwagger": {
"url": "http://localhost:5000/swagger/v1/swagger.json",
"output": null
}
},
"codeGenerators": {
@ydang204
ydang204 / cloudSettings
Last active September 19, 2020 05:36
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-04-13T17:47:20.709Z","extensionVersion":"v3.4.3"}