Skip to content

Instantly share code, notes, and snippets.

@0xOsprey
Created May 12, 2024 22:19
Show Gist options
  • Save 0xOsprey/b63eb2614ee100bdca4838708f22d2f4 to your computer and use it in GitHub Desktop.
Save 0xOsprey/b63eb2614ee100bdca4838708f22d2f4 to your computer and use it in GitHub Desktop.
Turn your clipboard text into Spongebob Meme format
#!/usr/bin/python3
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Spongebob Text
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🧽
# Documentation:
# @raycast.description Turn your clipboard text into Spongebob Meme format
# @raycast.author Joe Coll
# @raycast.authorURL https://0xosprey.github.io/
import sys, pyperclip
text = pyperclip.paste().lower()
string = ""
for i in range(len(text)):
string += (i%2==0) and text[i].upper() or text[i]
pyperclip.copy(string)
print(string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment