defunkt/gist — pull request #101 by ottomata (2012-05-29 15:00:10+00:00)
Title: --type was not working for me with input from stdin.  This should fix the problem.

Gitub gist API doesn't seem to use 'extension' anymore.
Default syntax highlighting is inferred from filename's
extension. This sets a filename with the gist_extension
for content from stdin.