Skip to content

Instantly share code, notes, and snippets.

View gillibrand's full-sized avatar

Jay Gillibrand gillibrand

  • Southern California, USA
View GitHub Profile
@omz
omz / FileTransfer.py
Last active September 6, 2024 01:50
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.
@Shchvova
Shchvova / Match.py
Created August 27, 2012 13:42
Match 3 game for Pythonista app. Yes, typed all on iPad. Copy/Paste it to app
from scene import *
from random import choice, randrange
import sound
TILE_SIZE=64 #size of tile
SDX=4 #selection frame size
M=3 #match 3(?) game
NOS = (-1, -1) #constant to indicate clear selection
FALL_S=0.2 #speed of fall per each tile
FALL_T=0 #constant fall tile