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 __future__ import annotations | |
import argparse | |
from pathlib import Path | |
import mido | |
NoteList = list[tuple[int, str, int]] |
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
#include <kamek_asm.S> | |
.extern sprintf | |
.set sp, 1 | |
kmCallDef 0x80a2f238 | |
lwz r5, 4(r28) | |
srwi r5, r5, 24 | |
andi. r5, r5, 0xF |
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
def QColor_repr(self) -> str: | |
""" | |
PyQt6.QtGui.QColor.__repr__ | |
""" | |
PREFIX = 'PyQt6.QtGui.QColor' | |
spec = self.spec() | |
if spec == QtGui.QColor.Spec.Invalid: | |
return f'{PREFIX}()' |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
:<bold>PRODUCERS</bold> | |
:Takashi Tezuka | |
:Hiroyuki Kimura | |
:<bold>DIRECTOR</bold> | |
:Shigeyuki Asuke | |
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
# 2021-05-01 | |
# Requirements | |
# ============ | |
# | |
# - Python 3.8+ | |
# - Watchdog (`pip install watchdog`) | |
# Usage |
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
# Exports a file with lines in the form "symbolName 0xADDRESS function_or_label" where "f" indicates a function and "l" a label | |
# @author RoadrunnerWMC | |
# @category Data | |
# | |
from ghidra.program.database.function import FunctionDB | |
f = askFile('Choose a file to write to', 'Go!') | |
COLUMN_2 = 32 |
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
# RRWMC, Mar 31 2020 | |
# The script behind Skawo's April Fools 2020 video | |
# (https://youtu.be/XCb3-nU9KZc) | |
# | |
# Download the source code for deeng from | |
# https://bisqwit.iki.fi/source/deeng.html | |
# Find the following in deeng.cc: | |
# else if(base == 'h' && res[a+1] == 'u') | |
# { | |
# base = 'f'; |
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
# MIT License | |
# | |
# Copyright (c) 2019 RoadrunnerWMC | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
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 cffi import FFI | |
ffibuilder = FFI() | |
ffibuilder.cdef( | |
""" | |
typedef struct c_class c_class; | |
typedef void destroy_callback_function(); | |
extern c_class* c_class_create(destroy_callback_function *callback); | |
extern void c_class_destroy(c_class *obj); |
NewerOlder