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
az deployment group create --name "testfrauddeploy" --resource-group "Fraud" --template-file .\template.json --parameters .\parameters.componentTest.json |
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; | |
public static class Kata | |
{ | |
public static string AddBinary(int a, int b) => | |
Convert.ToString(a + b, 2); | |
} |
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
// Mine | |
using System.Collections.Generic; | |
using System.Linq; | |
public static class Kata | |
{ | |
public static IEnumerable<T> UniqueInOrder<T>(IEnumerable<T> iterable) | |
{ | |
var output = new List<T>(); | |
T newItem = default(T); |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
public class Kata | |
{ | |
private IEnumerable<string> words; | |
public Kata(IEnumerable<string> words) |
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; | |
using System.Linq; | |
public class CountIPAddresses | |
{ | |
public static long IpsBetween(string s, string e) | |
{ | |
var start = s.Split('.').Select(x=> Convert.ToInt32(x)).ToArray(); | |
var end = e.Split('.').Select(x=> Convert.ToInt32(x)).ToArray(); | |
var startAcc = start[0] << 24 | start[1] << 16 | start[2] << 8 | start[3]; |
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
[user] | |
name = Colin Dooley | |
email = colind@asos.com | |
[alias] | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
[core] | |
# Make sure that interactive rebases open correctly with vs code | |
editor = code -w -n | |
ignorecase = false | |
[diff] |
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
conf = rs.conf() | |
conf.members[4].priority = 15.0 | |
rs.reconfig(conf) | |
//rs.stepdown() if needed |
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
db.adminCommand( { setFeatureCompatibilityVersion: "3.4" } ) | |
db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } ) |
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
db.adminCommand( { getLog: "global" } ) |
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
namespace Asos.Finance.Payments.PayPal.EndToEndTests.Framework.MessageTesting | |
{ | |
using System; | |
using System.Reactive.Linq; | |
using System.Reactive.Subjects; | |
using System.Threading.Tasks; | |
public class Observer | |
{ | |
private static readonly ReplaySubject<object> MessageObservable = new ReplaySubject<object>(); |
NewerOlder