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 numpy as np | |
| import sympy as sp | |
| class SO3: | |
| def rotx(theta): | |
| c, s = np.cos(theta), np.sin(theta) | |
| return np.matrix([ | |
| [1, 0, 0], | |
| [0, c, -s], | |
| [0, s, c] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| external_symbols = "/Users/Giorgos/Documents/MAP_EXTERNAL.bin" # **PATH TO YOUR MAP FILE GOES HERE** | |
| internal_symbols = "/Users/Giorgos/Documents/MAP_INTERNAL.bin" # **PATH TO YOUR MAP FILE GOES HERE** | |
| import struct | |
| from idautils import * | |
| from idaapi import * | |
| def load_burnout_symbols(path): | |
| with open(path, "rb") as file: | |
| file.seek(0x10) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| // Run with "dotnet fsi fft.fsx" | |
| #r "nuget: NWaves" | |
| open FSharp.Core | |
| open NWaves.Signals | |
| open NWaves.Transforms | |
| let magnitude realPart imagPart = Array.map2 (fun re im -> sqrt (re * re + im * im)) realPart imagPart | |
| let samples = [|1.0f; 0.6f; 0.4f; 0.1f; 1.0f; 1.0f; 0.9f; 1.0f|] |
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 sys | |
| if len(sys.argv) < 3: | |
| print("Error: Missing arguments. Pls provide the ultimate gain (Ku) and ultimate period (Tu) of your plant.") | |
| print("Usage: python3 pid.py <Ku> <Tu>") | |
| sys.exit(-1) | |
| # PID coefficients (Kp/Kd/Ki and Tp/Ti) | |
| class Coefficients: | |
| def __init__(self, Kp, Ki, Kd): |
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 <algorithm> | |
| #include <cstdint> | |
| #include <cstdio> | |
| #include <limits> | |
| #include <utility> | |
| using u8 = uint8_t; | |
| using u16 = uint16_t; | |
| using u32 = uint32_t; |
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
| // Implements the Markov Chain from this video: https://www.youtube.com/watch?v=Xkq13ZthmA0 | |
| // Stops when one of the CUDA threads manages to get the theme song sequence right | |
| #include <cuda_runtime.h> | |
| #include <curand_kernel.h> | |
| #include <cstdint> | |
| #include <cstdio> | |
| #include <cstdlib> | |
| #include <ctime> |
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
| #pragma once | |
| #include <filesystem> | |
| #include <limits> | |
| #include <optional> | |
| #include <type_traits> | |
| #include "helpers.hpp" | |
| #include "io_file.hpp" | |
| #include "swap.hpp" |
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
| # Copyright (c) 2015-2024 Vector 35 Inc | |
| # | |
| # 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: | |
| # | |
| # The above copyright notice and this permission notice shall be included in |
NewerOlder