Skip to content

Instantly share code, notes, and snippets.

@cclauss
cclauss / gpsForPythonista.py
Last active December 23, 2015 04:19
The GPS issue was fixed quite elegantly with the **location module** added in Pythonista v1.4. The code below is not longer required for Pythonista. gpsForPythonista using BaseHTTPServer and XMLHttpRequest Thanks to 'Hvmhvm' of Pythonisa fourm for working code Thanks to 'Anton2' of Pythonisa fourm for XMLHttpRequest
# The GPS issue was fixed quite elegantly with the location module
# added in Pythonista v1.4. The code below is not longer required.
# gpsForPythonista using BaseHTTPServer and XMLHttpRequest
# Source at https://gist.github.com/cclauss/6578926
# Thanks to 'Hvmhvm' of Pythonisa fourm for working code
# Thanks to 'Anton2' of Pythonisa fourm for XMLHttpRequest
# http://omz-software.com/pythonista/forums/discussion/92/gps-access-solved
# usage: from gpsForPythonista import getGPS; print(getGPS())
@allanon2
allanon2 / YoutubeClipper.py
Created August 15, 2013 10:31
YoutubeClipper
import urllib2, urlparse, sys, webbrowser, clipboard, console
itags = {'45': 'webm_720p',
'44': 'webm_480p',
'43': 'webm_360p',
'38': 'mp4_3072p',
'37': 'mp4_1080p',
'36': 'phone_mp4_240p',
'35': 'flv_480p',
'34': 'flv_360p',
@omz
omz / dropboxlogin.py
Created November 7, 2012 21:16
dropboxlogin
# YOU NEED TO INSERT YOUR APP KEY AND SECRET BELOW!
# Go to dropbox.com/developers/apps to create an app.
app_key = 'YOUR_APP_KEY'
app_secret = 'YOUR_APP_SECRET'
# access_type can be 'app_folder' or 'dropbox', depending on
# how you registered your app.
access_type = 'app_folder'
@omz
omz / FileTransfer.py
Last active August 8, 2023 14:44
File Transfer script for Pythonista (iOS)
# File Transfer for Pythonista
# ============================
# This script allows you to transfer Python files from
# and to Pythonista via local Wifi.
# It starts a basic HTTP server that you can access
# as a web page from your browser.
# When you upload a file that already exists, it is
# renamed automatically.
# From Pythonista's settings, you can add this script
# to the actions menu of the editor for quick access.