Skip to content

Instantly share code, notes, and snippets.

View Sajidur78's full-sized avatar

Sajid Sajidur78

View GitHub Profile
@Sajidur78
Sajidur78 / gist:62908f1db738ca5b45b41d3dd9e231ce
Created January 25, 2020 03:46
Sonic Team data collection
Hardware: Language|English
Hardware: Display Adapter|Radeon RX 570 Series
Hardware: Shadows|HIGH
Hardware: Reflections|HIGH
Hardware: Resolution|1920 X 1080
Hardware: Cpu|6c/12t
Hardware: Os|6.2 (9200)
pam000: LEVEL STATUS|STARTED
pam000: STARTED
pam000-PLAYER POS: X:-25.600000 Y:0.400000 Z:-1.000000
@Sajidur78
Sajidur78 / ResCharAnimScript.h
Last active March 17, 2021 22:30
Binary template/C header for Sonic Lost World ResCharAnimScript(.anm) files.
// This file functions both as a C header file and a binary template
#ifdef _010EDITOR
#define FILE_BASE 0x40
#define _010ARRAY <optimize=false>
#define BCOLOR_PURPLE <bgcolor=cPurple>
#define BEGIN_PTR size_t m_Offset<hidden=true>; \
local size_t curPos = FTell(); \
@Sajidur78
Sajidur78 / FxSceneData.bt
Created April 20, 2022 17:50
Binary template for Lost World's .hhd files
enum<byte> bool { False = 0, True = 1 };
typedef struct { float x; float y; float z; float w<hidden=true>; } vector3;
enum<byte> GIModeTypes {
GIMODE_NORMAL = 0,
GIMODE_ONLY = 1,
GIMODE_NONE = 2,
GIMODE_SHADOW = 3,
GIMODE_SEPARATED = 4,
};
@Sajidur78
Sajidur78 / scriptable-open-in-app.js
Created October 22, 2023 20:59
iOS scriptable action to open a website in app
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: link; share-sheet-inputs: url;
const url = args.urls[0]
var scheme = "";
var host = "";
var path = "";
var pos = 0;
var schemePos = url.indexOf(':');