Skip to content

Instantly share code, notes, and snippets.

View buchmoyerm's full-sized avatar

Mark Buchmoyer buchmoyerm

  • Jersey City, NJ
View GitHub Profile
@buchmoyerm
buchmoyerm / OrderResult.cs
Created November 4, 2014 14:48
enum example
namespace QuoteFeed.OMS.Data
{
public abstract class OrderResult
{
public abstract string ResultString();
public static readonly OrderResult Success = new SuccessResult();
public static readonly OrderResult DuplicateId = new DupliceIdResult();
public static readonly OrderResult InvalidRoute = new InvalidRouteResult();
public static readonly OrderResult InvalidOrderType = new InvalidOrderTypeResult();
class MyForm
{
public void UpdateProgress(int step) {
if (InvokeRequired) {
this.Invoke(new Action<int>(UpdateProgress), step);
} else {
prgOverallProgress.Value = step;
}
}
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
//Interfaces for working with excel
//this file allows me to not have a reference to excel in the project
//Adding a reference is to a specific version, these interfaces apply to all
//see Kenny Ker's blog http://weblogs.asp.net/kennykerr/archive/2008/12/16/Rtd7.aspx
@buchmoyerm
buchmoyerm / devInstallBoxstarter
Last active January 1, 2016 05:29
My-Boxstarter-Win-Dev-Install
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
choco install 7-Zip
choco isntall git
choco install far
choco install GitHub
choco install f.lux
choco install dropbox
choco install sourcetree