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
import json | |
import os | |
from bs4 import BeautifulSoup | |
import requests | |
import twitter | |
TWITTER_CLIENT = twitter.Twitter( | |
auth=twitter.OAuth('REDACTED', |
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
PROMPT='%n@%m : %{$fg[green]%}%~%{$fg_bold[blue]%}$(git_prompt_info)%{$reset_color%} ' | |
ZSH_THEME_GIT_PROMPT_PREFIX="(" | |
ZSH_THEME_GIT_PROMPT_SUFFIX=")" | |
ZSH_THEME_GIT_PROMPT_DIRTY=" $fg[red]:($fg[blue]" | |
ZSH_THEME_GIT_PROMPT_CLEAN=" $fg[green]:)$fg[blue]" |
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
#! python3 | |
# Share sheet extension script for adding new pages to Swift Playgrounds (experimental) | |
# HOW TO USE: | |
# 1. Add this script as a shortcut to the Pythonista extension (either from Pythonista's settings or the share sheet extension itself) | |
# 2. Tap the "Share" button in the Playground app's library. | |
# 3. Select the playground that you want to add a page to | |
# 4. Select "Run Pythonista Script" in the share sheet | |
# 5. Run this script, to select the chapter and page title. |
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
# coding: utf-8 | |
from bs4 import BeautifulSoup | |
import requests | |
import sys | |
import webbrowser | |
pythonista = True | |
try: | |
import notification | |
import console | |
except ImportError: |
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
# coding: utf-8 | |
# For Pythonista iOS app | |
# Bookmarklet: | |
# javascript:window.location.href='pythonista://urlshorten?action=run&argv='+encodeURIComponent(window.location.href); | |
import appex | |
import bitly_api | |
import clipboard | |
import sys |