This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
struct Library { | |
struct Core { | |
enum Name : String { | |
case kiwi = "Kiwi", limon = "Limón", sudachi = "Sudachi" | |
} | |
class GameBase {} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
_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` | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")!) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |