Created
May 21, 2020 15:20
-
-
Save crpietschmann/0fc020010bc6c8df2e015452eb73e2de to your computer and use it in GitHub Desktop.
#MSBuild 2020 Thank You Message Code
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
/* | |
This code flashed acros the screen for a momemt in the "Thank You" video Microsoft | |
published to https://mybuild.microsoft.com/ at the conclusion of the Build 2020 conference. | |
What does it return? | |
*/ | |
namespace Snippet | |
{ | |
public class Program | |
{ | |
string secret = "uggcf://nxn.zf/ohvyqgunaxf\nGunax*Lbh*Nyy!*🌮🌮"; | |
string result = string.Empty; | |
foreach (char c in secret) | |
{ | |
if((c >= 97 && c<= 122) || (c >= 65 && c <= 90)) | |
{ int cc = ((c & 223) - 52) % 26 + (c & 32) + 65; result+=(char)cc; } | |
else if (c == '*') { result+=" "; } | |
else { result += c; } | |
} | |
System.Console.WriteLine(result.ToString()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment