import re


def snake2camel(snaked_str):
   """
   Remove hyphens or underscores and capitalize each word beyond them.

   snaked_str:
      The snake-cased string to convert.

   Example::

      snake2camel("this-is-a-snake-case-string")

   Output::

      'ThisIsASnakeCaseString'
   """
   snake_splitter = re.compile("[-_]")
   camel_str = ""
   words = snake_splitter.split(snaked_str)
   for w in words:
       camel_str += w.capitalize()
   return camel_str