Skip to content

Instantly share code, notes, and snippets.

@sh4t
Created March 1, 2016 07:20
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 sh4t/820eded6f6b6542e06b2 to your computer and use it in GitHub Desktop.
Save sh4t/820eded6f6b6542e06b2 to your computer and use it in GitHub Desktop.
for twitch.tv/goatador
#!/usr/bin/env python
#encoding: utf-8
# a modest attempt to not do the work, but to give you some insight.
somestring = "PrintShitOutandBeAllNiceAndSlow"
def fuq_camelcase(somestring):
final = ''
for item in somestring:
if item.isupper():
final += " "+item.lower()
else:
final += item
if final[0] == " ":
final = final[1:]
return final
print fuq_camelcase(somestring)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment