Skip to content

Instantly share code, notes, and snippets.

View brendanmckenzie's full-sized avatar

Brendan McKenzie brendanmckenzie

View GitHub Profile
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: azureingressprohibitedtargets.appgw.ingress.k8s.io
labels:
app: ingress-azure
chart: ingress-azure-1.2.0-rc1
heritage: Helm
release: ingress-azure
spec:
const config: Config = {
fields: {
amount: {
type: "number",
aliases: ["amt", "<implicit>"],
queryField: (exp: any) => ({
ledgerTransactionsByPostingId: {
some: {
amountValue: exp
}
using System;
namespace Temp
{
class Program
{
static void Main(string[] args)
{
var a = new A();
const ifTask = () => {
const color = "";
if (color == "red") {
//do something
} else if (color == "blue") {
//do something
} else if (color == "brown") {
//do something
} else if (color == "black") {
//do something
const fs = require("fs");
const { exec } = require("child_process");
// this script aims to ensure that the master branch is never
// merged into another branch and thus will never end up in
// production
// installation:
// 1. yarn add -D husky
// 2. place this file in the root of the repository
public abstract class ListFilter
{
public string Name { get; set; }
public Type ValueType { get; set; }
public Type ArgumentType { get; set; }
public object DefaultValue { get; set; }
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.JsonPatch;
using Microsoft.AspNetCore.JsonPatch.Operations;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json.Linq;
using MyApp.Models;
module.exports = {
mode: process.env.NODE_ENV || "development",
entry: {
main: "./src/js/main.js"
},
output: {
filename: "[name].js"
},
module: {
rules: [
{
"body": {
"component": "container",
"model": null,
"placeholders": [
{
"key": "content",
"controls": [
{
"component": "markdown",
using System;
using System.Diagnostics;
using System.Linq;
namespace ExceptionTest
{
class Program
{
const int SampleSize = 1000000;