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 / 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()
@jarrodnorwell
jarrodnorwell / arm11.cpp
Created January 30, 2023 18:56
arm11 cpu stuff
enum Mode : uint32_t {
USER,
FIQ,
IRQ,
SUPERVISOR,
ABORT,
SYSTEM,
UNDEFINED
};
@jarrodnorwell
jarrodnorwell / sho_decomp.py
Last active December 23, 2022 14:55 — forked from ifahadone/decompile-pyc-dir-recursively.py
Decompile compiled Python files preserving directory structure.
from argparse import ArgumentParser
from glob import glob
from os import mkdir, path, sep, walk
from subprocess import call
from sys import version_info
PY_EXT = 'py'
PYC_EXT = 'pyc'
class Colors:
<?xml version="1.0" encoding="UTF-8"?>
<FileZilla3 version="3.61.0" platform="windows">
<Servers>
<Server>
<Host>us1.storj.io</Host>
<Port>7777</Port>
<Protocol>21</Protocol>
<User />
<Pass encoding="base64">MTR5TDZvTmhrUlZIbmhuMWRtcHg5WWJocFNSWTdpWG9HcXF4ekFKMjdQc2VWOTN5VjdlbTZ1dFFzakczNzF2N0x2NmZXWmNNZWJQcmhxM1pFdHVrcDdOVExzYUF6Qmo2TWQxUmhERzZkUzZzd0FWS3daZVBnMlpQSEpzcDl5U3ZwcVMyMTk4QW1wRDJ2TmJtUlJ2M3Z6Yno3cXVyZnlnVENTMkJNTWhpSDVlRUVtMVlqS0s2RVExYTJocUVmbnBTdTk5cEpjQmVMWmRTdVh4NnVOYzc5TWtveVdiMzlvVmNYM0xYSzlOandYSkVud2t2UVBETjhHUW94cUgxM2gzektCa3FjaDlqSGUzcVF2cG8xaw==</Pass>
<Logontype>1</Logontype>
from bs4 import BeautifulSoup
import json, os, requests
def device() -> dict:
response = requests.get('https://www.myfakeinfo.com/mobile/get-android-device-information.php')
soup = BeautifulSoup(response.text, 'html.parser')
container = soup.find('div', class_='container')
rows = container.find_all('div', class_='row')