Skip to content

Instantly share code, notes, and snippets.

@sbp
Created July 23, 2011 12:31
Show Gist options
  • Save sbp/1101374 to your computer and use it in GitHub Desktop.
Save sbp/1101374 to your computer and use it in GitHub Desktop.
Supercombiner pasteboard script for OS X
#!/bin/bash
python -c '
import sys, unicodedata
s = "u"
for i in xrange(1, 3000):
if unicodedata.category(unichr(i)) == "Mn":
s += unichr(i)
if len(s) > 100: break
sys.stdout.write(s.encode("utf-8"))
' | pbcopy
@sbp
Copy link
Author

sbp commented Aug 15, 2024

SAY IT AGAIN IN PYTHON3

python3 -c '
import sys, unicodedata
s = "u"
for i in range(1, 3000):
   if unicodedata.category(chr(i)) == "Mn":
      s += chr(i)
   if len(s) > 100: break
sys.stdout.buffer.write(s.encode("utf-8"))
' | pbcopy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment