This gist is no longer being maintained Mainted resume can be found on my website, here.
Email: andrewmiotke@gmail.com
Email: andrewmiotke@gmail.com
Email: andrewmiotke@gmail.com
Phone: (253) 970-6993
GitHub: @miotke Twitter: @miotke
Hello, my name is Andrew Miotke and I would love to take a moment of your time to explain
// This code does not create a functional list view | |
// but does split the views into two different functional views. | |
// The button acts strictly as a button therefore the highlight | |
// disappears immediatly after the tap gesture is dismissed. | |
// I'm sure there will be a better way to do this and hopefully | |
// we learn of one at WWDC2020. For now this kind gets you by. | |
import SwiftUI | |
struct ContentView: View { |
This gist is just a list of small helper code and CLI commands to help during development.
Prints the location of the Core Data database in the console to inspect if data is actually saving. You can put this anywhere you would like. I typeically put it in the AppDelegate.swift file to be called when the app first launches.
print("🚒 Documents Directory: ", FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).last ?? "Not Found!")
import SwiftUI | |
// This alert initializer is now deprecated but still works as of writing this | |
// in iOS 15. | |
// https://developer.apple.com/documentation/swiftui/alert | |
struct ContentView: View { | |
@State private var showAlert = false | |
var body: some View { |
""" | |
Reads my Job_Applications csv file and finds all of the | |
unique job titles. | |
""" | |
import csv | |
from collections import Counter | |
titles = [] | |
file = "Job_Applications.csv" |
# Passing your question in to input() as a string | |
# | |
# Both print() and input() are functions that can take some some data, | |
# usually a string. | |
# | |
# Below in 'user_input' it asks how many apples you have and then you can | |
# type in anything you want (preferrably a number) then, it prints whatever | |
# value you gave user_input. | |
user_input = input("How many apples do you have? ") |
""" | |
Gets all users assigned to a specified app then adds them to the specified group. | |
""" | |
import os | |
import time | |
import requests | |
OKTA_API_KEY = os.environ["okta_api"] | |
OKTA_ADMIN_BASE_URL = os.environ["okta_url"] |