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 OptionTypes | |
{ | |
public abstract class Option<T> | |
{ | |
public abstract T GetSome { get; } | |
public abstract override string ToString(); | |
protected T Value; |
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 Moq; | |
using Moq.Language; | |
using Moq.Language.Flow; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq.Expressions; | |
namespace MoqHelper | |
{ | |
public class ExpectantStrictMock<T> : Mock<T> where T : class |
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
### Keybase proof | |
I hereby claim: | |
* I am blythmeister on github. | |
* I am blythmeister (https://keybase.io/blythmeister) on keybase. | |
* I have a public key ASBwvtTm8cs1SATrLmvuqsQcKo9NKAUSTG8veaNmHfwdswo | |
To claim this, I am signing this object: |
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
void Main() | |
{ | |
Run(@"C:\My\Repo\Root"); | |
} | |
void Run(string rootDir) | |
{ | |
Console.WriteLine($"Starting at {DateTime.UtcNow.ToString("u")}"); | |
Console.WriteLine($"Running against: {rootDir}"); | |
RunPaketCommand(rootDir, "update"); |
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
{ | |
"Id": "dfbf8776-b178-46f4-9bd2-f242c74d2551", | |
"Name": "Reboot Machine", | |
"Description": "Will reboot a tentacle without it noticing in a deploy", | |
"ActionType": "Octopus.Script", | |
"Version": 1, | |
"CommunityActionTemplateId": null, | |
"Packages": [], | |
"Properties": { | |
"Octopus.Action.Script.ScriptSource": "Inline", |
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
<Query Kind="Program"> | |
<NuGetReference>NetOfficeFw.Outlook</NuGetReference> | |
<NuGetReference>Newtonsoft.Json</NuGetReference> | |
<Namespace>NetOffice</Namespace> | |
<Namespace>NetOffice.OutlookApi</Namespace> | |
<Namespace>Newtonsoft.Json</Namespace> | |
<Namespace>System.Net</Namespace> | |
<Namespace>NetOffice.OutlookApi.Enums</Namespace> | |
</Query> |
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
void Main() | |
{ | |
var originalRepo = "git@github.com:_**_/_**_.git"; | |
var originalRepoBranch = "master"; | |
var newRepo = "git@github.com:_**_/_**_.git"; | |
var newRepoBranch = "master"; | |
var workInProgressDir = @"C:\Temp\RepoCopy"; | |
var relativeFolderToMigrate = "src/path"; | |
MigrateRepo(originalRepo, originalRepoBranch, newRepo, newRepoBranch, workInProgressDir, relativeFolderToMigrate); | |
} |
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
<Query Kind="Program"> | |
<NuGetReference>Octokit</NuGetReference> | |
<Namespace>Octokit</Namespace> | |
<Namespace>System.Threading.Tasks</Namespace> | |
</Query> | |
GitHubClient githubClient; | |
/* START SETTINGS */ | |
string githubToken = "[TOKEN]"; |
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
void Main() | |
{ | |
var teams = File.ReadAllLines(@"C:\users\chris.blyth\Desktop\Teams.txt").ToList(); | |
var people = File.ReadAllLines(@"C:\users\chris.blyth\Desktop\People.txt").ToList(); | |
if (teams.Count > people.Count) | |
{ | |
var missingPeople = teams.Count - people.Count; | |
for (int i = 0; i < missingPeople; i++) | |
{ |
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
<Query Kind="Program"> | |
<NuGetReference Prerelease="true">Octokit.GraphQL</NuGetReference> | |
<Namespace>Octokit.GraphQL</Namespace> | |
<Namespace>Octokit.GraphQL.Model</Namespace> | |
<Namespace>Newtonsoft.Json</Namespace> | |
<Namespace>System.Threading.Tasks</Namespace> | |
</Query> | |
async Task Main() | |
{ |
OlderNewer