This file contains hidden or 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
| # Python file downloader for Pythonista by OMZ Software | |
| # By: EJM Software ---- http://ejm.cloudvent.net | |
| # Source: https://gist.github.com/89edf288a15fde45682a | |
| # ***************************************** | |
| # This simple script uses the requests module to download files | |
| # and the ui module to show a progress bar | |
| # You can use this bookmarklet to download files from Safari: | |
| # javascript:window.location='pythonista://filedownloader?action=run&argv='+encodeURIComponent(document.location.href); | |
| import ui, console, clipboard, sys, requests, zipfile |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Color Space</key> | |
| <string>sRGB</string> | |
| <key>Blue Component</key> | |
| <real>0.25882352941176473</real> |
This file contains hidden or 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 uuid | |
| from pathlib import Path | |
| from urllib.parse import urlparse | |
| from datetime import datetime | |
| import html2text | |
| import requests | |
| from bs4 import BeautifulSoup |
This file contains hidden or 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 argparse | |
| import json | |
| import re | |
| import os | |
| from time import time | |
| parser = argparse.ArgumentParser(description='Convert to Quiver Format') | |
| parser.add_argument("src", help="The Source File You want to Convert") | |
| args = parser.parse_args() | |
| cells = [] |
This file contains hidden or 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 os | |
| import random | |
| from PIL import Image, ImageOps | |
| def concat_images(image_paths, size, shape=None): | |
| # Open images and resize them | |
| width, height = size | |
| images = map(Image.open, image_paths) | |
| images = [ImageOps.fit(image, size, Image.ANTIALIAS) |
This file contains hidden or 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
| """ | |
| Installs IPython on Pyto. | |
| Usage: Usage: import requests as r; exec(r.get('https://bit.ly/35iSbM1').content.decode()) | |
| """ | |
| from pip import main as pip | |
| import os.path | |
| docs = os.path.expanduser("~/Documents") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| from sre_parse import Pattern, SubPattern, parse as sre_parse | |
| from sre_compile import compile as sre_compile | |
| from sre_constants import BRANCH, SUBPATTERN | |
| class Scanner(object): | |
| def __init__(self, tokens, flags=0): | |
| subpatterns = [] | |
| pat = Pattern() |
This file contains hidden or 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
| (* | |
| Even though a [native solution][1] exists, it still suffers from a big flaw: it right-clicks the place you cursor is, not what you’re selecting. This addresses that limitation. | |
| You can install this as a [Finder Service, and later asign it a keyboard shortcut][2]. | |
| [1]: http://stackoverflow.com/questions/9171613/right-click-shortcut-for-mac-lion-os | |
| [2]: http://www.macosxautomation.com/services/learn/tut01/index.html | |
| *) |
This file contains hidden or 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
| -- Export to Devonthink without extra OCR within Devonthink (Script written by Benjamin Zeiss) | |
| on run argv | |
| if (count of argv) is greater than 0 then | |
| repeat with theItem in argv | |
| tell application id "com.devon-technologies.thinkpro2" to launch | |
| try | |
| set thePath to theItem as text | |
| tell application id "com.devon-technologies.thinkpro2" | |
| set theRecord to import thePath to incoming group | |
| end tell |
OlderNewer