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
| tell application "Evernote" | |
| set _selectedNote to false | |
| set _notes to get every note of every notebook where its title contains "TARGETNOTE" | |
| repeat with _note in _notes | |
| if length of _note is not 0 then | |
| set _selectedNote to _note | |
| end if | |
| end repeat | |
| tell item 1 of _selectedNote to append text return & return & date string of (current date) & time string of (current date) & return | |
| tell item 1 of _selectedNote to append attachment theFile |
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
| #!/usr/bin/env python | |
| #version 2.13 | |
| #author [email protected] | |
| #Copyright (c) 2011-2015 Toby Rosen | |
| #Distributed under the New BSD License. | |
| #All rights reserved. | |
| #Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: |
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 sys; from PIL import Image; import numpy as np | |
| chars = np.asarray(list(' .,:;irsXA253hMHGS#9B&@')) | |
| if len(sys.argv) != 4: print( 'Usage: ./asciinator.py image scale factor' ); sys.exit() | |
| f, SC, GCF, WCF = sys.argv[1], float(sys.argv[2]), float(sys.argv[3]), 7/4 | |
| img = Image.open(f) | |
| S = ( round(img.size[0]*SC*WCF), round(img.size[1]*SC) ) | |
| img = np.sum( np.asarray( img.resize(S) ), axis=2) |
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 notification | |
| from random import randint | |
| import sys | |
| import urllib | |
| import webbrowser | |
| reminders = ["Reminder A", ["Reminder B", "url://"], "Reminder C"] | |
| n = randint(0, len(reminders)-1) | |
| URL = "pythonista://random_reminders.py?action=run" |
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
| # FontInstaller (by @olemoritz) | |
| # This script installs a custom TTF font on iOS (system-wide). | |
| # It can be used in one of two ways: | |
| # 1. Simply run it in Pythonista, you'll be prompted for the URL of the font | |
| # you'd like to install (if there's a URL in the clipboard, it'll be used by default) | |
| # 2. Use it as an 'Open in...' handler, i.e. select this file in Pythonista's 'Open in... | |
| # menu' setting. This way, you can simply download a ttf file in Safari and open it in |
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
| javascript: | |
| window.location = 'launchpro://?url=' + encodeURIComponent('launchpro://?url='+ encodeURIComponent('pushpin://add?url={{' + location.href + '}}&title={{' + document.title + '}}&tags=[list:📌'+ location.href +'|without tag= |!to_check_out|ios app url-scheme=ios app url-scheme|ebook=reading ebook]')); |
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
| # -*- coding: utf-8 -*- | |
| # Check and change redirection status of a telefon number via the | |
| # website of my telephone network service provider TNG.de | |
| # Python Script for iOS Pythonista App (Vers. 1.4) | |
| from bs4 import BeautifulSoup | |
| import requests, console, re, sys, time, exceptions | |
| try: |
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
| javascript:(function(){window.location="launch://x-callback-url/dropbox/append?text="+encodeURIComponent(document.title+" - "+location.href)+"&path=%2FPublic&name=Websites.txt&linebreak=YES&x-success="+encodeURIComponent(location.href);})(); |
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
| #!/bin/sh | |
| /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -dump | grep -E "^[[:space:]]*bindings:.+[a-z]+[a-z0-9.+-]*:" | sed -E "s/^[[:space:]]*bindings:[[:space:]]+//" | sort -u |