Mercurial > repo
annotate bin/hi @ 3898:d412a26653e5
<fizzie> printf \'%s\\n\' \'#!/usr/bin/env python\' \'import sys\' \'import unicodedata\' \'print u" ".join("[{0}]".format(unicodedata.name(c, "DUNNO")) for c in " ".join(sys.argv[1:]).decode("utf-8")).encode("utf-8")\' > bin/unidecode
author | HackBot |
---|---|
date | Fri, 11 Oct 2013 13:53:14 +0000 |
parents | c216e32f5e2e |
children |
rev | line source |
---|---|
3385
6d9cebb0eac5
<ion> sed -re \'s/\\<Thanks,/Hi/; s/\\<Th\\>/H/; s/\\<T\\>/H/\' <bin/thanks >bin/hi && chmod +x bin/hi && cat bin/hi
HackBot
parents:
diff
changeset
|
1 #!/usr/bin/perl |
3386
c216e32f5e2e
<ion> sed -i -re \'s/aeiouy/aeiouyAEIOUY/g\' bin/thanks bin/hi && cat bin/thanks
HackBot
parents:
3385
diff
changeset
|
2 $_ = (join " ", @ARGV) || `words`; s/^\s+|\s+$//g; print "Hi $_. "; if (/[aeiouyAEIOUY]/) { s/^[^aeiouyAEIOUY]*/H/; } else { s/^./H/; } print "$_."; |