Skip to content

Instantly share code, notes, and snippets.

View bartsipes's full-sized avatar

Bart Sipes bartsipes

  • The U S of A
  • 20:01 (UTC -05:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bartsipes on github.
  • I am bartsipes (https://keybase.io/bartsipes) on keybase.
  • I have a public key ASBqhM6CJp2hN6xhrmvXseEuRGjEg6WsbcaIYLzsH-zufQo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am bartsipes on github.
* I am bartsipes (https://keybase.io/bartsipes) on keybase.
* I have a public key whose fingerprint is 1D65 4703 2D3B D21C 4906 AFA9 DA75 F27E 530A F9ED
To claim this, I am signing this object:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Web;
namespace Mvc {
@bartsipes
bartsipes / DumpEndpoint
Created January 8, 2013 15:53
Dump the endpoint of a WCF Service
private static void DumpEndpoint(ServiceEndpointCollection endpoints)
{
foreach (ServiceEndpoint sep in endpoints)
{
Console.Write(“Address:{0}\nBinding:{1}\nContract:{2}\n”, sep.Address, sep.Binding.Name, sep.Contract);
Console.WriteLine(“Binding Stack:”);
foreach (BindingElement be in sep.Binding.CreateBindingElements())
{
Console.WriteLine(be.ToString());
}
@bartsipes
bartsipes / Anderson.c
Created January 12, 2012 04:17
Semphore application written to echo back your words in semaphore flags. I believe this was authored by somebody named Anderson.
#include <stdio.h>
char
*T="IeJKLMaYQCE]jbZRskc[SldU^V\\X\\|/_<[<:90!\"$434-./2>]s",
K[3][1000],*F,x,A,*M[2],*J,r[4],*g,N,Y,*Q,W,*k,q,D;X(){r [r
[r[3]=M[1-(x&1)][*r=W,1],2]=*Q+2,1]=x+1+Y,*g++=((((x& 7)
-1)>>1)-1)?*r:r[x>>3],(++x<*r)&&X();}E(){A||X(x=0,g =J
),x=7&(*T>>A*3),J[(x[F]-W-x)^A*7]=Q[x&3]^A*(*M)[2 +(
x&1)],g=J+((x[k]-W)^A*7)-A,g[1]=(*M)[*g=M[T+=A ,1
][x&1],x&1],(A^=1)&&(E(),J+=W);}l(){E(--q&&l ()