Skip to content

Instantly share code, notes, and snippets.

View morrisonbrett's full-sized avatar
💭
Eat. Sleep. Code.

Brett Morrison morrisonbrett

💭
Eat. Sleep. Code.
View GitHub Profile
@davepcallan
davepcallan / SimpleStringConcatentionDotNet8.cs
Created July 12, 2023 11:26
.NET 8 string concatenation benchmarks when concatenating only a small amount of strings
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Columns;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Reports;
using System;
using System.Text;
namespace Benchmarks
{
@chris-belcher
chris-belcher / work-diary.md
Last active October 4, 2023 16:53
Chris Belcher work diary
@rowanmiller
rowanmiller / Demo.cs
Last active November 5, 2019 09:12
EF6.x | Correlating SQL to code
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Data.Entity;
using System.Data.Entity.Infrastructure.Interception;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace Demo
@tmaiaroto
tmaiaroto / Gruntfile.js
Created July 2, 2015 15:34
Gruntfile for working with Hugo
module.exports = function(grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
shell: {
options: {
stdout: true
},
server: {
@dmichael
dmichael / httpclient.go
Last active October 18, 2023 20:07
Light wrapper for the Go http client adding (essential) timeouts for both connect and readwrite.
package httpclient
import (
"net"
"net/http"
"time"
)
type Config struct {
ConnectTimeout time.Duration