Skip to content

Instantly share code, notes, and snippets.

@abhiomkar
Created June 22, 2010 22:00
Show Gist options
  • Select an option

  • Save abhiomkar/449166 to your computer and use it in GitHub Desktop.

Select an option

Save abhiomkar/449166 to your computer and use it in GitHub Desktop.
to use in jquery
# input:
#
# margin: 0px;
# padding: 0px;
# top: 0px;
#
# output:
# margin: "0px",
# padding: "0px",
# top: "0px",
# to use in jquery
print "\n".join(map(lambda x: x.split(':')[0] + ': ' + '"'+x.split(':')[1][:-1]+'",', css.split("\n")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment