Skip to content

Instantly share code, notes, and snippets.

View miotke's full-sized avatar

Andrew Miotke miotke

View GitHub Profile
"""
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"]
# 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? ")
@miotke
miotke / job_titles.py
Last active September 20, 2023 03:22
"""
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"
@miotke
miotke / Basic_SwiftUI_Alert.swift
Last active June 23, 2021 18:35
Shows how to write a basic alert view in SwiftUI with an binding variable to show the alert.
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 {

This gist is just a list of small helper code and CLI commands to help during development.

CoreData location in simulator

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!")
// 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 {

Privacy Policy

This policy applies to all information that is collected inside of Tankd. Data that is inputed by the user is not shared or accessible outside of the user's iOS device.

The creator, Andrew, does not collect any user data.

Change log

  • 06-16-2020: Created privacy policy
@miotke
miotke / mk6_carplay.md
Last active September 9, 2023 00:05
Write up of installing Apple CarPlay in my 2012 mk6 Golf R

Installing Apple CarPlay in a Volkswagen mk6 Golf R

This is a quick write up of installing Apple CarPlay in my 2012 mk6 Golf R.

Notable Car and Spec

  • US Spec
  • Dynaudio
  • Multi-function steering wheel
  • No backup camera
  • 6 speed manual
@miotke
miotke / CoverLetter.md
Last active April 20, 2020 05:01
Cover Letter for Andrew Miotke

Andrew Miotke

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

@miotke
miotke / Resume.md
Last active May 30, 2021 22:02
Resume for Andrew Miotke