Skip to content

Instantly share code, notes, and snippets.

View dextercd's full-sized avatar

Dexter Castor Döpping dextercd

View GitHub Profile
@dextercd
dextercd / Wiki table format
Last active April 25, 2022 15:43
fevlist
===Master Bank===
{| class='wikitable')
|-
! GUID
! Event
|-
| fcb63c0a-331d-44e6-bf64-cfa8c5b6e6e7
| *snowcave
|-
| 53a7180c-9635-4a37-a2b8-fb801ac66ff
function shallow_copy(t)
local t2 = {}
for k,v in pairs(t) do
t2[k] = v
end
return t2
end
local function make_observable(t, key, prev_keys)
if type(t) ~= "table" then
undefined * __fastcall FUN_005ce670(undefined *param_1,undefined4 param_2)
{
if (true) {
switch(param_2) {
case 0:
FUN_0041cd70("NONE");
return param_1;
case 1:
/* WARNING: Could not reconcile some variable overlaps */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void __thiscall FUN_00a9d1a0(int **param_1_00,int *param_1,int param_2)
{
float *pfVar1;
float *pfVar2;
float *pfVar3;
KERNELBASE!RaiseException+0x62 (FPO: [4,22,0])
MSVCR120!_CxxThrowException+0x5b (FPO: [Non-Fpo]) (CONV: stdcall) [f:\dd\vctools\crt\crtw32\eh\throw.cpp @ 152]
MSVCR120!operator new+0x50 (FPO: [Non-Fpo]) (CONV: cdecl) [f:\dd\vctools\crt\crtw32\heap\new.cpp @ 62]
noita+0x2bbec6
noita+0x2bd824
noita+0x2ad155
noita+0x280352
noita+0x1ca2cf
noita+0x2fefc4
lua51+0x266d
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
@dextercd
dextercd / migrate.sh
Created August 18, 2022 20:48
Script for merging two Git repositories
#!/bin/bash
set -e
base_commit=30b923863d1768121c1ffb95932977e4283eceea
config_tree=56ecfa52fa08335c44ebcc9a8749779b3b9a7ecc
make_tree() {
sway_config=$1
function OnWorldPostUpdate()
if connection == nil then
return
end
if os.getenv("ROLE") == "R" then
do_receive()
return
end
@dextercd
dextercd / load_material.c
Last active November 29, 2022 16:31
Noita Load materials
/* WARNING: Could not reconcile some variable overlaps */
void load_material_xml(CellData *param_1_00,CXmlFileSys *filesys)
{
void **ppvVar1;
uint8_t uVar2;
char cVar3;
uint16_t uVar4;
local imgui = load_imgui({version="1.0.0", name="test"})
function OnWorldPreUpdate()
if imgui.Begin("Main Window Title") then
local available_width, available_height = imgui.GetContentRegionAvail()
if imgui.BeginChild("TopLeft", 0.2 * available_width, 200, true) then
imgui.Text("TopLeft")
imgui.EndChild()