Skip to content

Instantly share code, notes, and snippets.

@benharri
Created January 15, 2018 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benharri/f29fd63e0e846ed5f25346f9bd2934bd to your computer and use it in GitHub Desktop.
Save benharri/f29fd63e0e846ed5f25346f9bd2934bd to your computer and use it in GitHub Desktop.
string h(string s) {
s = string.Concat(s.Where(c => char.IsUpper(c)||char.IsDigit(c)));
var m = s.Length;
var x = new string('-', m);
return $"+{x}+\n|{s}|\n+{x}+\n{new string(' ', m + 1)}v";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment