Skip to content

Instantly share code, notes, and snippets.

View zazazack's full-sized avatar

Zachary Wilson zazazack

View GitHub Profile
@zazazack
zazazack / FileTransfer.py
Created October 31, 2016 17:55 — forked from omz/FileTransfer.py
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.
@zazazack
zazazack / FileBrowser.py
Last active November 1, 2016 15:33 — forked from omz/FileBrowser.py
FileBrowser
import http.server
import socketserver
import webbrowser
import os
os.chdir('/')
Handler = http.server.SimpleHTTPRequestHandler
httpd = socketserver.TCPServer(("", 0), Handler)
port = httpd.server_address[1]