This file contains 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 random | |
import numpy as np | |
import manim as mn | |
from svg.path import parse_path | |
def integrate(func, a, b, *, dx=0.01): | |
return sum(func(x) * dx for x in np.arange(a, b, dx)) | |
class SVGPath(mn.VMobject): | |
def __init__(self, path_str, *, num_points=500, **kwargs): |
This file contains 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 numpy as np | |
from manim import * | |
class ComplexPlaneWithFunctionDots(ComplexPlane): | |
class InputDot(Dot): | |
def __init__(self, plane, **kwargs): | |
super().__init__(**kwargs) | |
self.plane = plane |
This file contains 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 | |
import sys | |
import re | |
def get_num_methods(string): | |
m = re.search(r'private function method_(\d+)\(... rest\) : Object(\s*\{\s*)return const_1\[(\d+)\];(\s*\}\s*\})', string) | |
return int(m.group(1)) | |
def index_for_method(method_num, string): |
This file contains 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 <stdio.h> | |
#include <switch.h> | |
int main(int argc, char **argv) { | |
consoleInit(NULL); | |
printf("Before socketInitializeDefault\n"); | |
consoleUpdate(NULL); | |
socketInitializeDefault(); | |
printf("After socketInitializeDefault\n"); |
This file contains 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 | |
import sys | |
import os | |
import subprocess | |
from PIL import Image | |
from pathlib import Path | |
from ips_util import Patch | |
def exec_cmd(cmd): |
This file contains 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 | |
# Reverse engineering sure is easy when you have source code to reference | |
import struct | |
import argparse | |
import sys | |
from Crypto.Cipher import AES | |
from pathlib import Path |
This file contains 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 <stdio.h> | |
#include <switch.h> | |
int main(int argc, char* argv[]) | |
{ | |
consoleInit(NULL); | |
printf("Hello World!\n"); |
This file contains 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
lightTheme={ | |
textColor=(0,0,0,255); | |
frontWaveColor=(255,102,204,255); | |
middleWaveColor=(255,51,153,255); | |
backWaveColor=(204,0,153,255); | |
backgroundColor=(233,236,241,255); | |
highlightColor=(255,77,166,255); | |
separatorColor=(128,0,128,255); | |
enableWaveBlending=0; | |
buttonAText=""; |