Skip to content

Instantly share code, notes, and snippets.

View deontologician's full-sized avatar
🦀
🌎

Josh Kuhn deontologician

🦀
🌎
View GitHub Profile
@deontologician
deontologician / tagify.py
Created July 3, 2012 14:05
Python function to create hash tags from various inputs.
import re
import string as s
def tagify(*args, **kwargs):
r'''Turns the argument strings into tags. so 'my tag' becomes '#MyTag'
Any keyword arguments become tags with values.
>>> tagify('hi there')
['#HiThere']