I hereby claim:
- I am vbfox on github.
- I am vbfox (https://keybase.io/vbfox) on keybase.
- I have a public key whose fingerprint is 38F5 0CAE 98D0 1EC5 F05F 75F5 E837 FAF6 2D23 1094
To claim this, I am signing this object:
| // http://hacks.mozilla.org/2012/01/using-the-fullscreen-api-in-web-browsers/ | |
| function fullscreenMode() | |
| { | |
| this.request = function() { | |
| var documentElement = document.documentElement; | |
| if (documentElement.requestFullscreen) { | |
| return documentElement.requestFullscreen(); | |
| } | |
| else if (documentElement.mozRequestFullScreen) { |
| static class Utils | |
| { | |
| static IEnumerable<Assembly> GetDirectlyReferencedAssemblies(Assembly startAssembly) | |
| { | |
| return startAssembly.GetReferencedAssemblies() | |
| .Select(TryLoad) | |
| .Where(a => a != null && !a.GlobalAssemblyCache); | |
| } | |
| static IEnumerable<Assembly> GetReferencedAssemblies(Assembly startAssembly) |
| void Main() | |
| { | |
| var root = new DirectoryInfo(@"C:\temp\tmls\Visual Studio Templates"); | |
| var works = from dir in root.GetDirectories("*.*", System.IO.SearchOption.AllDirectories) | |
| where dir.Parent.Name == "1033" | |
| select new { | |
| Archive = Path.Combine(dir.Parent.FullName, dir.Name + ".zip"), | |
| Glob = Path.Combine(dir.FullName, "*"), | |
| Dir = dir |
| namespace HackNSlash | |
| { | |
| using System; | |
| using System.ComponentModel; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Runtime.InteropServices; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| using System.Text.RegularExpressions; |
| void Main() | |
| { | |
| var bmp = new Bitmap(1920, 1200); | |
| const int size = 20; | |
| Random r = new Random(); | |
| Color colorA = Color.FromArgb(0, 148, 255); | |
| Color colorB = Color.FromArgb(145, 216, 255); |
| void Main() | |
| { | |
| IFoo foo = new Foo(); | |
| A.CallMethodWithAnyArgs(() => A.Hack(__arglist(foo.Bar))); | |
| } | |
| public static class A | |
| { | |
| public static void CallMethodWithAnyArgs(Action callSpecification) | |
| { |
| let private teamCityEscapeChars = | |
| [ ('\'', "|'"); ('\r', "|r"); ('\n', "|n"); ('|', "||"); ('[', "|["); (']', "|]") ] | |
| |> Map.ofSeq | |
| let private teamCityEscape s = | |
| let final = s |> Seq.map (fun c -> | |
| match teamCityEscapeChars |> Map.tryFind c with | |
| | Some(replacement) -> replacement | |
| | _ -> string(c) |
| let private encodeParameterArgument original = | |
| if String.IsNullOrEmpty(original) then | |
| original | |
| else | |
| let temp = Regex.Replace(original, @"(\\*)" + "\"", @"$1\$0"); | |
| Regex.Replace(temp, @"^(.*\s.*?)(\\*)$", "\"$1$2$2\""); | |
| let private encodeParameterArguments (arguments:seq<string>) = | |
| String.Join(" ", arguments |> Seq.map encodeParameterArgument) | |
| static class HtmlFragment | |
| { | |
| const string HTML_FRAGMENT_HEADER = "Version:0.9\r\nStartHTML:{0:000000}\r\nEndHTML:{1:000000}" | |
| + "\r\nStartFragment:{2:000000}\r\nEndFragment:{3:000000}\r\n"; | |
| const string HTML_FRAGMENT_BEGIN = "<html>\r\n<head>\r\n" | |
| + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset={0}\">\r\n</head>\r\n" | |
| + "<body>\r\n<!--StartFragment-->"; | |
| const string HTML_FRAGMENT_END = "<!--EndFragment-->\r\n</body>\r\n</html>\r\n"; |
I hereby claim:
To claim this, I am signing this object: