TODO: Write a project description
TODO: Describe the installation process
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
javascript:(function({ | |
var INSTAPAPER=true,w=window,d=document,pageSelectedTxt=w.getSelection?w.getSelection():(d.getSelection)?d.getSelection():(d.selection?d.selection.createRange().text:0),pageTitle=d.title,pageUri=w.location.href,tmplt=""; | |
tmplt="From ["+pageTitle+"]("+pageUri+"):\n\n"; | |
if(pageSelectedTxt!="") { | |
pageSelectedTxt=">%20"+pageSelectedTxt; | |
pageSelectedTxt=pageSelectedTxt.replace(/(\r\n|\n+|\r)/gm,"\n"); | |
pageSelectedTxt=pageSelectedTxt.replace(/\n/g,"\n>%20\n>%20"); | |
w.location.href="nvalt://make/?txt="+encodeURIComponent(tmplt+pageSelectedTxt)+"&title="+encodeURIComponent(pageTitle) | |
} | |
else { |
ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="gallois" | |
setopt HIST_FIND_NO_DUPS | |
setopt histignorealldups | |
alias x='exit' | |
alias desk='cd ~/Desktop' | |
alias rm='grm -v' |
# Shows a list of the 10 top paid apps on the App Store. | |
print 'Loading...' | |
import feedparser | |
import console | |
print 'Fetching Feed...' | |
feed = feedparser.parse('http://itunes.apple.com/us/rss/toppaidapplications/limit=10/xml') | |
entries = feed['entries'] |
from requests import get | |
from json import loads | |
from urllib import quote | |
from webbrowser import open | |
email = 'YOUR EMAIL' | |
password = 'YOUR PASSWORD' | |
r = get('https://draftin.com/api/v1/documents.json', auth=(email,password)) |
# coding: utf-8 | |
'''Creates a zip archive of your Pythonista files and serves them via HTTP in your local network.''' | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
import os | |
import shutil | |
import tempfile | |
import shutil | |
PORT = 8080 |
# Very simple SSH client for Pythonista | |
import paramiko | |
import console | |
ssh = paramiko.SSHClient() | |
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) | |
host = console.input_alert('Connect to') | |
user, passwd = console.login_alert('Login') | |
ssh.connect(host, username=user, password=passwd) | |
print 'Connected to %s. Type `exit` to disconnect.' % host |
# Simple installer script for using the Evernote SDK in Pythonista | |
# | |
# This script should be run from the root directory. In order to keep things | |
# tidy, it installs the module and all its dependencies in a directory named | |
# 'evernote-sdk'. In order to be able to import it, you have to add that to | |
# your import path, like this: | |
# | |
# import sys | |
# sys.path.append('evernote-sdk') | |
# |
import Image | |
import ImageChops | |
import ImageDraw | |
import ImageFont | |
import ImageFilter | |
import clipboard | |
def draw_caption(img, text, outline=2, top=False): | |
text_img = Image.new('RGBA', img.size, (0, 0, 0, 0)) | |
draw = ImageDraw.Draw(text_img) |