Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save crpietschmann/0fc020010bc6c8df2e015452eb73e2de to your computer and use it in GitHub Desktop.
Save crpietschmann/0fc020010bc6c8df2e015452eb73e2de to your computer and use it in GitHub Desktop.
#MSBuild 2020 Thank You Message Code
/*
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