Created
November 2, 2015 03:36
-
-
Save jacobian/bd4944bd10fc61f69e95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def imgcat(url): | |
content = base64.encodestring(urllib.urlopen(url).read()) | |
text = "\033]1337;File=inline=1;size={0};px:{1}\a" | |
return text.format(str(len(content)), content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment