Skip to content

Instantly share code, notes, and snippets.

Pythonista Examples -- Overview

This folder contains lots of examples to help you get started with Pythonista, and to give you some ideas of what you can do with it.

Animation

These are little experiments and toys, created using the scene module -- have a look at the Games section for more examples of this sort.

Extension

# Pythonista Examples -- Overview
This folder contains lots of examples to help you get started with Pythonista, and to give you some ideas of what you can do with it.
## Animation
These are little experiments and toys, created using the `scene` module -- have a look at the *Games* section for more examples of this sort.
## Extension
#!/usr/bin/env python
'''
Little snippet to simulate a REST API webserver
Author: Olivier HO-A-CHUCK
Date: April 2018
Usage:
install FLASK (pip install Flask)
write your quick app.routes see samples
run ./rest.py
Note: should work for python 2.x and pyhon 3.x
############################################################
# Dockerfile to build program-y Application Containers
# Based on centos and python 3.6
############################################################
# Set the base image to centos
FROM centos
# File Author / Maintainer
MAINTAINER Olivier HO-A-CHUCK
@ohoachuck
ohoachuck / gist:d18bf93d819c4074290e
Created May 20, 2015 22:29
Verifying I am +_oho on my passcard. https://onename.com/_oho
Verifying I am +_oho on my passcard. https://onename.com/_oho !
https://gist.github.com/anonymous/69625c7ac5701893057f
@ohoachuck
ohoachuck / wwdcVideoGet.sh
Created June 17, 2013 14:35
Simple Bash script for downloading wwdc 2013 SD videos and pdf. This script do rename files with appropriate titles for videos and pdf. If the script have been stopped and you run it again, it will not re-download what have already been downloader. We are talking about around 3Go of files here. You will need a Apple developer credentials for it.…
#!/bin/sh
# Author: Olivier HO-A-CHUCK
# Date: June 15th 2013
# License: Do What You Want with it. But notice that this script come with no garanty and will not be maintained.
WWDC_DIRNAME="/Users/${USER}/Desktop/WWDC-2013"
TMP_DIR="/tmp/wwdc2013.tmp"
@ohoachuck
ohoachuck / _appreviews.py
Created April 19, 2013 09:52
This mini-script was created for testing the great Pythonista iOS app (http://clk.tradedoubler.com/click?p=23753&a=1901746&partnerId=2003&url=https://itunes.apple.com/fr/app/pythonista/id528579881?mt=8&uo=4). It's a quick and dirty AppStore review grabing script to use from the app. Note that country is hardcoded. It's based on Apple official RS…
# Pythonista script
# Script name: getreviews.py
# Author: Olivier HO-A-CHUCK
# License (OHO Ware): free to use modify, alter, re-use for commercial use or not! :)
# Date: Nov. 15th 2012
# Usage through URL Scheme: pythonista://_appreviews?action=run&args=<appID>
# exemple: pythonista://_appreviews?action=run&args=308816822
# hint: you can create links like that on note application on iPhone or iPad (as links with url schemes are clickable)
@ohoachuck
ohoachuck / _appreviews-no-pythonista.py
Created April 19, 2013 09:39
Script for grabing AppStore review based on official Apple RSS feed. Work on Python 2.7 This script is an adaptation of _appreview.py script that was a pythonista (quick and dirty) test script. You might want to know that Apple official feed is bugged and review greater than page 10 does not appears (If I remember well). The best is to grab it f…
#!/usr/local/bin/python2.7
# Desktop version of pythonista script (no console usage nor clipboard)
# Script name: getreviews.py
# Author: Olivier HO-A-CHUCK
# License (OHO Ware): free to use modify, alter, re-use for commercial use or not! :)
# Date: Nov. 15th 2012
# Usage: _appreviews.py <appID>
# exemple: _appreviews.py 308816822