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 / main.py
Created January 22, 2024 14:05
Wodwell Data Scraper w/o BS4
from .wodwell import Wodwell
if __name__ == "__main__":
wodwell = Wodwell()
wodwell.get_wods(page=1, sort="popular")
wodwell.get_all_wods(sort="popular") # best not use this
# example usage
for wods in wodwell.get_wods(page=1, sort="popular")
wodwell.get_wod(wod_id=wod["id'])
@jarrodnorwell
jarrodnorwell / LibraryManager.swift
Created January 20, 2024 11:16
Library manager for Folium... is this messy? Maybe. Does it work? Yes.
import Foundation
struct Library {
struct Core {
enum Name : String {
case kiwi = "Kiwi", limon = "Limón", sudachi = "Sudachi"
}
class GameBase {}
download_citra() {
# use /jarrodnorwell/citra to include additional platform checks not in /citra-emu/citra
git clone https://github.com/citra-emu/citra citra-src
}
setup_core_dirs() {
mkdir -p Citra/audio_core
mkdir Citra/common
mkdir Citra/core
mkdir Citra/input_common
/*
_UISystemBackgroundView is the first subview of a UIButton when initialised with (configuration:)
or (configuration:primaryAction:) and can be used to get the cornerRadius.
Usage:
if let systemBackground = button.subviews.first(where: {
$0.classForCoder == _UISystemBackgroundView.classForCoder() }) as? _UISystemBackgroundView {
// do something with `systemBackground` or `systemBackground.configuration`
}
struct NDSHeader {
struct CCharAddress {
let offset: Int
let size: Int
let title: String
var bytes: UnsafeMutablePointer<UInt8>
func string() -> String? {
guard let string = String(bytesNoCopy: bytes + offset, length: size, encoding: .utf8, freeWhenDone: false) else {
from re import search
from requests import get
print(search(r"views\":{\"simpleText\":\"(.*?)\"}", get(f"https://www.youtube.com/watch?v={input("Enter YouTube Video ID: ")}").text).group(1))
@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