These are scripts I use to serialize some of the practice exercises we get on multivariable calculus, statistics and physics 2 class, they are not meant to be easy to understand or a tutorial on how to write CAS programs on the HP Prime graphing calculator but rather a set of solutions I was able to come up with, for some a valuable resource nonetheless.
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.8 | |
from sympy import Basic, Piecewise, Symbol, Eq, Mod, Heaviside, sympify, plot as splot | |
import numpy | |
from typing import Hashable, Tuple, Iterable, NamedTuple, Callable, Type | |
from matplotlib import pyplot as mplot | |
from sympy.physics.units.definitions import Hz | |
from sympy.physics.units.quantities import Quantity | |
from sympy.physics.units.prefixes import kilo |
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
@echo off | |
:: GUIDs were randomly generated using the command ``python3 -c "import uuid; print(str(uuid.uuid4()).upper())"`` | |
set guid=C3AA96DB-679A-4D75-B53F-F9EBDFEBE6C3 | |
set name=Seafile | |
set folder=%%userprofile%%\Seafile | |
set icon=%%programfiles(x86)%%\Seafile\bin\seafile-applet.exe,-2 | |
:: set guid=92EB2F95-3564-4430-8022-4CAF93AB8D96 | |
:: set name=Sync | |
:: set folder=%%userprofile%%\Sync |
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 bash | |
run_on_ztncui () { | |
(source ~/containers/ztncui.sh && ztncui-compose exec -T ztncui bash -c "$1"); return $? | |
} | |
NETWORKS="$(run_on_ztncui 'curl -s -X GET --header "X-ZT1-Auth: $ZT_TOKEN" "$ZT_ADDR"/controller/network')" | |
for rules_file in ./rules/*.ztrules; do | |
nwid="$(python3 -c "import pathlib, sys; print(pathlib.Path(sys.argv[1]).stem)" "$rules_file")" && |
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 | |
from oscilloscope import parse_csv_export, ParsedCSV | |
import argparse | |
from io import TextIOWrapper | |
import matplotlib.pyplot as plt | |
def main(): | |
parser = argparse.ArgumentParser(description="Example plotter") | |
parser.add_argument("infile", type=argparse.FileType('r')) |
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 bash | |
# Returns an eval-safe representation of the bash function that when evaluated prints its name, | |
# useful when redefining functions | |
function_copy_rnd () { | |
local rand_prefix="$(head /dev/urandom | tr -dc A-Za-z | head -c 8)_" | |
local name="$1" | |
local decl; | |
decl="$(declare -f "$name")" || return $? | |
echo "${rand_prefix}${decl}; echo $(printf "%q" "${rand_prefix}${name}")" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<CheatTable CheatEngineTableVersion="27"> | |
<CheatEntries> | |
<CheatEntry> | |
<ID>53</ID> | |
<Description>"Havok license bypasses"</Description> | |
<LastState Value="" RealAddress="00000000"/> | |
<GroupHeader>1</GroupHeader> | |
<CheatEntries> | |
<CheatEntry> |
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 | |
# Un Entrenador, quiere almacenar los tiempos de una carrera de 100 metros de 5 atletas. | |
# Cada Atleta realiza 5 pruebas de las cuales se registran los tiempos. | |
# Se propone crear un diccionario que como claves tengan los nombres de los atletas y cargar | |
# como valores del diccionario una lista con los tiempos de cada uno. | |
# Se deberá presentar el siguiente menú. | |
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
diff --git a/Cameras/Dishonored2/InjectableGenericCameraSystem/GameConstants.h b/Cameras/Dishonored2/InjectableGenericCameraSystem/GameConstants.h | |
index bc8e206..b44950a 100644 | |
--- a/Cameras/Dishonored2/InjectableGenericCameraSystem/GameConstants.h | |
+++ b/Cameras/Dishonored2/InjectableGenericCameraSystem/GameConstants.h | |
@@ -30,8 +30,8 @@ | |
namespace IGCS::GameSpecific | |
{ | |
// Mandatory constants to define for a game | |
- #define GAME_NAME "Dishonored 2, v1.77+" | |
- #define CAMERA_VERSION "1.0.0" |
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
Dishonored2.exe+3BFC7F0 | aas_subdivisionSize = 64 | Dishonored2.exe+3BFC818 -> 64 | |
the size of subdivisions to use for debug drawing | |
Dishonored2.exe+340CC20 | achievements_Verbose = 0 | Dishonored2.exe+340CC48 -> 0 | |
debug spam for achievements | |
Dishonored2.exe+3BFA570 | ai_debugCam = 0 | Dishonored2.exe+3BFA598 -> 0 | |
enable debug camera | |
Dishonored2.exe+3BFA470 | ai_debugScript = -1 | Dishonored2.exe+3BFA498 -> 4294967295 |