Skip to content

Instantly share code, notes, and snippets.

@acgritt
acgritt / WildcardOriginCorsPolicy.cs
Created June 18, 2020 12:48 — forked from kumards/WildcardOriginCorsPolicy.cs
Wildcard Origin Cors Policy
public class WildcardOriginCorsPolicy : Attribute, ICorsPolicyProvider
{
private readonly string _origins;
private readonly string _headers;
private readonly string _methods;
//private readonly CorsPolicy _policy;
//
// Summary:
// Initializes a new instance of the WildcardOriginCorsPolicy class.
@acgritt
acgritt / JS-LINQ.js
Created June 18, 2020 12:40 — forked from DanDiplo/JS-LINQ.js
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },
{ name: "Judy", age: 42 },
{ name: "Tim", age: 8 }

Keybase proof

I hereby claim:

  • I am acgritt on github.
  • I am adamgritt (https://keybase.io/adamgritt) on keybase.
  • I have a public key ASB1eqrrtAApRIskvIX3VZxdaSYIid8KujEhT8IzV9eQAAo

To claim this, I am signing this object: