Skip to content

Instantly share code, notes, and snippets.

View Mr-Coxall's full-sized avatar

Patrick Coxall Mr-Coxall

  • St. Mother Teresa HS
  • Ottawa
View GitHub Profile
@Mr-Coxall
Mr-Coxall / kalven.py
Created August 17, 2016 12:38
kalven.py
# coding: utf-8
import ui
v = ui.load_view()
v.present('sheet')
@Mr-Coxall
Mr-Coxall / download_Gist_to_Pythonista.py
Last active September 4, 2016 01:59 — forked from jsbain/savefile.py
savefile.py
#coding: utf-8
# Created By: jsbain -> https://gist.github.com/jsbain
# Created For: Pythonista
# Created On: Aug-2016
# Altered on: Aug 2016
# Altered by: Mr. Coxall
# What Changed: added comments, changed name of file, changed the output the user sees
@Mr-Coxall
Mr-Coxall / scene_test.py
Created August 21, 2016 11:42
scene_test.py
# for use with https://github.com/omz/PythonistaAppTemplate
from scene import *
import ui
class FirstScene (Scene):
def setup(self):
self.background_color = 'midnightblue'
self.ship = SpriteNode('spc:PlayerShip1Orange')
self.ship.position = self.size / 2
@Mr-Coxall
Mr-Coxall / hello_world.py
Last active September 3, 2016 02:11
hello_world.py
print('Hello, World!')
@Mr-Coxall
Mr-Coxall / address.py
Last active September 3, 2016 02:10
address.py
print('Mr. Coxall')
print('Ottawa')
print('Ontario')
@Mr-Coxall
Mr-Coxall / hello_world_gui.py
Last active July 1, 2018 02:25
hello_world_gui.py
# Created by: Mr. Coxall
# Created on: Aug 2018
# Created for: ICS3U
# This program is the Hello, World program, but with a GUI
import ui
view = ui.load_view()
view.present('sheet')
@Mr-Coxall
Mr-Coxall / address_gui.py
Last active July 1, 2018 02:25
address_gui.py
# Created by: Mr. Coxall
# Created on: Aug 2018
# Created for: ICS3U
# This program is the Address program, but with a GUI
import ui
v = ui.load_view()
v.present('sheet')
@Mr-Coxall
Mr-Coxall / hello_world_button.py
Last active July 1, 2018 02:23
hello_world_button.py
# Created by: Mr. Coxall
# Created on: Aug 2018
# Created for: ICS3U
# This program is the Hello, World program, but with a button
import ui
def hello_world_touch_up_inside(sender):
#print ('Hello, World!')
view['hello_world_label'].text = ("Hello, World!")
@Mr-Coxall
Mr-Coxall / hello_world_international.py
Last active July 1, 2018 02:30
hello_world_international.pdf
# Created by: Mr. Coxall
# Created on: Aug 2018
# Created for: ICS3U
# This program is the Hello, World program, but with 3 buttons
import ui
def english_touch_up_inside(sender):
# displays the English version
view['hello_world_label'].text = ('Hello, World!')
@Mr-Coxall
Mr-Coxall / calculations.py
Last active July 1, 2018 02:31
calculations.py
# Created by: Mr. Coxall
# Created on: Aug 2018
# Created for: ICS3U
# This program does basic math
import ui
def equation1_touch_up_inside(sender):
# displays the answer to equation 1