Skip to content

Instantly share code, notes, and snippets.

@robo-corg
Created April 14, 2010 22:11
Show Gist options
  • Save robo-corg/366407 to your computer and use it in GitHub Desktop.
Save robo-corg/366407 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sys
import urllib
input = open(sys.argv[1]).read()
print 'javascript:' + urllib.quote(input)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment