This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config: Config = { | |
fields: { | |
amount: { | |
type: "number", | |
aliases: ["amt", "<implicit>"], | |
queryField: (exp: any) => ({ | |
ledgerTransactionsByPostingId: { | |
some: { | |
amountValue: exp | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Temp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var a = new A(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class ListFilter | |
{ | |
public string Name { get; set; } | |
public Type ValueType { get; set; } | |
public Type ArgumentType { get; set; } | |
public object DefaultValue { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
mode: process.env.NODE_ENV || "development", | |
entry: { | |
main: "./src/js/main.js" | |
}, | |
output: { | |
filename: "[name].js" | |
}, | |
module: { | |
rules: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"body": { | |
"component": "container", | |
"model": null, | |
"placeholders": [ | |
{ | |
"key": "content", | |
"controls": [ | |
{ | |
"component": "markdown", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Linq; | |
namespace ExceptionTest | |
{ | |
class Program | |
{ | |
const int SampleSize = 1000000; |