- Download the perforce visual tool suite from here: http://www.perforce.com/perforce/downloads/index.html
- Copy only the p4merge.app file into your /Applications/ directory
👷♂️
This file contains hidden or 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
typeof (Convert) | |
.GetMethods(BindingFlags.Static|BindingFlags.Public) | |
.Where(m=>m.Name.StartsWith("To")) | |
.Select(m=>m.GetParameters().First().ParameterType) | |
.Distinct() |
This file contains hidden or 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
[ServiceContract] | |
class TheResolverTestService | |
{ | |
[WebGet(UriTemplate="op1/{prm1}/{prm2}")] | |
public void Oper1(string prm1, int prm2) | |
{ | |
} | |
[WebGet(UriTemplate = "op2/{prm1}/middle/{prm2}")] | |
[OperationContract(Name="op2")] |
This file contains hidden or 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
public static class HttpClientExtensionMethods | |
{ | |
public static void SetBasicAuth(this HttpClient httpClient, string userName, string password) | |
{ | |
var byteArray = Encoding.ASCII.GetBytes(userName + ":" + password); | |
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray)); | |
} | |
public static void AcceptJson(this HttpClient httpClient) | |
{ |
NewerOlder