Skip to content

Instantly share code, notes, and snippets.

Alexander Zeitler AlexZeitler

Block or report user

Report or block AlexZeitler

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
tony4d /
Created Aug 24, 2012
Setup p4merge as a visual diff and merge tool for git
darkiri / gist:2039990
Created Mar 14, 2012
is there a method which returns all .net base types/structs that System.Convert is able to convert to/from?
View gist:2039990
typeof (Convert)
pmhsfelix / gist:1140101
Created Aug 11, 2011
Operation URI resolution
View gist:1140101
class TheResolverTestService
public void Oper1(string prm1, int prm2)
[WebGet(UriTemplate = "op2/{prm1}/middle/{prm2}")]
mattdot / gist:1086078
Created Jul 16, 2011
WCF Web API: Extension methods for requesting a response in JSON, and for setting Basic auth headers
View gist:1086078
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)
You can’t perform that action at this time.