Skip to content

Instantly share code, notes, and snippets.

matthewvukomanovic

Block or report user

Report or block matthewvukomanovic

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
@matthewvukomanovic
matthewvukomanovic / WritableTuple.cs
Created Oct 10, 2018
C# WritableTuple based on reflected Tuple
View WritableTuple.cs
public interface IWritableTuple
{
int Length { get; }
object this[int index] { get; }
}
internal interface IWritableTupleInternal : IWritableTuple
{
string ToString(System.Text.StringBuilder sb);
@matthewvukomanovic
matthewvukomanovic / Program.cs
Last active Sep 7, 2018
Autofac, OWIN, WebApi, and SignalR
View Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using Autofac;
using Autofac.Integration.SignalR;
using Autofac.Integration.WebApi;
using Microsoft.AspNet.SignalR;
@matthewvukomanovic
matthewvukomanovic / addselftosqlsysadmin.cmd
Created May 17, 2017 — forked from wadewegner/addselftosqlsysadmin.cmd
Script to add the current user to the sysadmin role in SQL Server
View addselftosqlsysadmin.cmd
@echo off
rem
rem ****************************************************************************
rem
rem Copyright (c) Microsoft Corporation. All rights reserved.
rem This code is licensed under the Microsoft Public License.
rem THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
rem ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
rem IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
rem PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
@matthewvukomanovic
matthewvukomanovic / .gitattributes
Last active Jul 18, 2016
Test Stepping through code with optimisations enabled
View .gitattributes
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
You can’t perform that action at this time.