Last active
September 18, 2016 02:35
-
-
Save elliotchance/dea4eae8490df6a24972d528a61ea9f1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import re | |
| def to_camel_case(text): | |
| return re.sub('[_-](.)', lambda x: x.group(1).upper(), text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment