Skip to content

Instantly share code, notes, and snippets.

View eddo888's full-sized avatar

David Edson eddo888

View GitHub Profile
@Leeft
Leeft / python279-win-xplane.md
Last active August 8, 2021 21:51
Installing Python 2.7.9 for X-Plane and "SIDS STARS GUI" on Windows

Installing Python 2.7.9 for X-Plane and "SIDS STARS GUI" on Windows

Installing the dependencies that this script needs can be a bit of a pain. Additionally, X-Plane (from my experience) only works well together with one particular Python version, 2.7.9. So here's what you need to do:

  1. Go to: https://www.microsoft.com/en-us/download/details.aspx?id=44266 and download and install this compiler for Python.

  2. Download Python 2.7.9 64bit from https://www.python.org/downloads/release/python-279/ and make sure to pick the "Windows x86-64 MSI installer" for the 64 bit version.

    Run the installer you just downloaded to install Python. Most defaults are fine, you can choose a different drive if you really want to. Python isn't very large though, so your system drive is probably just fine.

@tnsicdr
tnsicdr / pythonista_compile_howto.md
Created April 9, 2016 04:24 — forked from SpaceVoyager/pythonista_compile_howto.md
How to make a standalone iOS app with Pythonista

After you made some cool games or apps with Pythonista, you may want to make it run as a standaone app on iPad/iPhone and possibly share it on the AppStore. This how-to tells you how to do it.

What you need:

  1. Pythonista code you wrote
  2. A Mac with Xcode 7.1 installed
  3. iPhone/iPad running iOS 9

Steps:

  1. Download PythonistaProjectTemplate.zip. The original PythonistaProjectTemplate described at http://olemoritz.net/pythonista-15-whats-new-and-whats-missing.html does not work with Xcode 7. I updated it to work with Xcode 7 and added a more interesting example than the plain old Hello World thing.
  2. Unzip the file and open the project in Xcode 7.1. In project settings, change the Bundle Identifier from com.yuhangwang.pythonistaproject to something else.
@claymcleod
claymcleod / pycurses.py
Last active July 20, 2024 00:12
Python curses example
import sys,os
import curses
def draw_menu(stdscr):
k = 0
cursor_x = 0
cursor_y = 0
# Clear and refresh the screen for a blank canvas
stdscr.clear()
@omz
omz / touchid.py
Last active November 15, 2023 23:35 — forked from alessaba/TouchID.py
TouchID.py
# coding: utf-8
from objc_util import *
import threading
NSBundle = ObjCClass('NSBundle')
LocalAuthentication = NSBundle.bundleWithPath_('/System/Library/Frameworks/LocalAuthentication.framework')
LocalAuthentication.load()
LAContext = ObjCClass('LAContext')
# authenticate() will raise one of these exceptions when authentication