Skip to content

Instantly share code, notes, and snippets.

View rniller's full-sized avatar

Thomas Miller rniller

  • Grand Rapids, Michigan
View GitHub Profile
@rniller
rniller / WebKitJavaScriptManipulation.txt
Created June 3, 2021 05:15
WebKit JavaScript manipulation
// ViewController.swift
import UIKit
import WebKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
@rniller
rniller / main.py
Created July 30, 2021 19:42
7.19 LAB - Max magnitude
import math
def max_magnitude(user_val1, user_val2):
max_num = 0
if user_val1 >= user_val2: # If user_val1 is greater than user_val2, output user_val1
max_num = abs(user_val1)
elif user_val2 >= user_val1: # If user_val2 is greater than user_val1, output user_val2
max_num = abs(user_val2)
else:
max_num = None # Error