Skip to content

Instantly share code, notes, and snippets.

Brendan McKenzie brendanmckenzie

Block or report user

Report or block brendanmckenzie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View interfaceq.cs
using System;
namespace Temp
class Program
static void Main(string[] args)
var a = new A();
View test.js
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
View .master.check.js
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
View ListFilter.cs
public abstract class ListFilter
public string Name { get; set; }
public Type ValueType { get; set; }
public Type ArgumentType { get; set; }
public object DefaultValue { get; set; }
View PatchController.cs
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;
View webpack.config.js
module.exports = {
mode: process.env.NODE_ENV || "development",
entry: {
main: "./src/js/main.js"
output: {
filename: "[name].js"
module: {
rules: [
View output.json
"body": {
"component": "container",
"model": null,
"placeholders": [
"key": "content",
"controls": [
"component": "markdown",
View ExceptionTest.cs
using System;
using System.Diagnostics;
using System.Linq;
namespace ExceptionTest
class Program
const int SampleSize = 1000000;

Keybase proof

I hereby claim:

  • I am brendanmckenzie on github.
  • I am brendanmckenzie ( on keybase.
  • I have a public key ASCUFDT0tAQNf2v32bqoa2J613EhyT5fy7IHZFnrf6eVtgo

To claim this, I am signing this object:

View load-cores.ps1
You can’t perform that action at this time.