Created
February 3, 2016 23:04
-
-
Save JamesTryand/66d4d35e4d603c4ac6c8 to your computer and use it in GitHub Desktop.
Public edition of my facebook retard remover.
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; | |
namespace Facepalm { | |
// This is an example of SDD - Sarcasm Driven Development. | |
public class Program { | |
public static void Main(params string[] args) { | |
DoTheBanOThon.LikeRightNow(); | |
} | |
} | |
public class DoTheBanOThon { | |
Func<string,bool> BanThe = new Func<string,bool>(msg => msg.Contains('@')); | |
public DoTheBanOThon As(FBIdentity identity) { | |
// facebooky login stuff | |
} | |
public IEnumerable<dynamic> GivenTheMessage(string messageid) { | |
// facebooky data badgers | |
} | |
public void BanThe(string) { | |
// more facebooky dribblings | |
} | |
public static void LikeRightNow() { | |
var myself = // urr yeah as if | |
As(myself).GivenTheMessage("10153391165192475"). | |
comments.data.Where(comment => | |
If.The(comment.message).Is(ARetardedComment)). | |
Select(comment => comment.name). | |
ForEach(retard => BanThe(retard)) | |
} | |
} | |
public static class If { | |
public static Apply<T> The<T>(T subject) { | |
return new Apply(subject); | |
} | |
} | |
public class Apply<T> { | |
private readonly T subject; | |
public Apply<T>(T subject) { | |
this.subject = subject; | |
} | |
public TResponse Is<TRequest,TResponse>(TRequest job) where TRequest : Func<T,TResponse> { | |
return job(subject); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment