Skip to content

Instantly share code, notes, and snippets.

View jarrodnorwell's full-sized avatar
🏠
Working from home

Jarrod Norwell jarrodnorwell

🏠
Working from home
View GitHub Profile
@jarrodnorwell
jarrodnorwell / ABXYButton.swift
Created October 18, 2023 08:19
LMVirtualControllerView is a custom on-screen (virtual) controller replacement for GCVirualController used in emuThreeDS/Limón
//
// ABXYButton.swift
// Limon
//
// Created by Jarrod Norwell on 10/18/23.
//
import Foundation
import UIKit
@jarrodnorwell
jarrodnorwell / tmdbyts_scraper_output.json
Created October 11, 2023 18:48
Outputted JSON from my TMDB and YTS scraper
This file has been truncated, but you can view the full file.
{
"adult": false,
"backdrop_path": "/mRGmNnh6pBAGGp6fMBMwI8iTBUO.jpg",
"belongs_to_collection": {
"id": 968052,
"name": "The Nun Collection",
"poster_path": "/d998jmbM0AQ9Ad138Mz0N9CdnOU.jpg",
"backdrop_path": "/bKpqH9y3SjovMM3VqzezBbJtuf7.jpg"
},
"budget": 38500000,
@jarrodnorwell
jarrodnorwell / PSX.swift
Created October 10, 2023 07:07
Reads Sony license string from PS1 BIOS file (pain)
class BUS {
var cpu: CPU!
var rom: UnsafeMutablePointer<UInt8>! = nil
init() {
self.cpu = CPU(bus: self)
do {
var data = try Data(contentsOf: Bundle.main.url(forResource: "SCPH9002", withExtension: "BIN")!)
@jarrodnorwell
jarrodnorwell / gitpybackup.py
Created October 6, 2023 18:29
Backup `repo_count` of public repositories for username`
#
# main.py
# GitPyBackup
#
# Created by Jarrod Norwell on 07/10/2023.
#
"""
Because the user specified only has 40~ repositories I've made this as basic as possible,
just change the username and repo_count to get started, it'll download all repos into the cwd
@jarrodnorwell
jarrodnorwell / VirtualControllerView.swift
Created September 21, 2023 06:49
Virtual Controller used as a replacement for GCVirtualController
//
// VirtualControllerView.swift
// emuThreeDS
//
// Created by Jarrod Norwell on 21/9/2023.
//
import Foundation
import UIKit
let virtualControllerView = VirtualControllerView()
virtualControllerView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(virtualControllerView)
view.addConstraints([
virtualControllerView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
virtualControllerView.bottomAnchor.constraint(equalTo: view.bottomAnchor),
virtualControllerView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
])
virtualControllerView.addAButton { _ in
@jarrodnorwell
jarrodnorwell / gumtree_locations.json
Created July 29, 2023 18:31
Response from a reverse engineered Gumtree API
This file has been truncated, but you can view the full file.
{
"children": [
{
"children": [
{
"children": [
{
"children": [
{
"children": [],
import SwiftUI
struct DeIncrementView: View {
@State var value: Int = 0
var body: some View {
HStack {
Button {
value -= 1
}, label: {
//
// MinimalRoundedTextField.swift
// AppNameHere
//
// Created by Antique on 4/7/2023.
//
import Foundation
import UIKit
class MetalView : UIView {
override var layerClass: AnyClass {
return CAMetalLayer.class
}
}
let metalView = MetalView(frame: view.bounds)
view.addSubview(metalView)
let wrapper = Wrapper()