Skip to content

Instantly share code, notes, and snippets.

View usernameak's full-sized avatar

usernameak

  • Warsaw, Poland
  • 12:22 (UTC +01:00)
View GitHub Profile

SDK Installation instructions

  1. Install arm-none-eabi-gcc (if you're on Windows, you can use msys2 and install mingw-w64-arm-none-eabi-gcc package; on Linux/macOS use your distro's package, e.g for Debian it is gcc-arm-none-eabi, on macOS Homebrew it's gcc-arm-embedded; this guide won't work on macOS ≥10.15 because elf2mod is a 32-bit app).
  2. Fetch Brew MP SDK 7.12.5 installer and platform SDK installer for the BREW version you'd like to target. Installers won't run on windows 10, so don't install them yet.
  3. Extract Brew MP SDK 7.12.5 installer with 7-Zip.
  4. Inside it, extract another installer called BREWMPTools.exe the same way.
  5. Extract platform SDK to some other directory.

Compiler flags

Specification of *.BAR resource archive format from BREW 3.1.x

Everything is little-endian

Header:

struct bar_header_t {
    uint8_t file_type; // always 0x11
    uint8_t padding; // zero byte for alignment
@usernameak
usernameak / paper-versions.json
Created November 26, 2020 19:37 — forked from osipxd/!paper-versions.md
Paper versions links
{
"latest": "1.16.4",
"versions": {
"1.16.4": "https://papermc.io/ci/job/Paper-1.16/lastSuccessfulBuild/artifact/paperclip.jar",
"1.16.1": "https://papermc.io/ci/job/Paper-1.16/lastSuccessfulBuild/artifact/paperclip.jar",
"1.15.2": "https://papermc.io/ci/job/Paper-1.15/lastSuccessfulBuild/artifact/paperclip.jar",
"1.14.4": "https://papermc.io/ci/job/Paper-1.14/lastSuccessfulBuild/artifact/paperclip.jar",
"1.13.2": "https://papermc.io/ci/job/Paper-1.13/lastSuccessfulBuild/artifact/paperclip.jar",
"1.12.2": "https://papermc.io/ci/job/Paper/1618/artifact/paperclip.jar",
"1.11.2": "https://papermc.io/ci/job/Paper/1104/artifact/paperclip.jar",
module electory.gui.imgui;
import core.stdc.stdint;
import core.stdc.stdarg;
extern (C) @nogc nothrow
{
//UDT stuff
struct ImVec2_Simple
{
private static void maxMinQuantize(int[] inbuf, int width, int height, Color[] palette) {
final int HISTSIZE = 64 * 64 * 64;
// Allocate histogram
int[] hist = new int[HISTSIZE];
// Fill histogram
final int l = width * height;
for (int i = 0; i < l; i++) {
int red = (inbuf[i] >> 16) & 0xFF;
---- Minecraft Profiler Results ----
// Hello world
Time span: 52540 ms
Tick span: 230 ticks
// This is approximately 4,38 ticks per second. It should be 20 ticks per second
--- BEGIN PROFILE DUMP ---
[00] levels - 95,62%/95,62%
#include "/home/usernameak/altona-remake/build/util/shaders.hpp"
/****************************************************************************/
#line 28 "/home/usernameak/altona-remake/util/shaders.asc"
void sSimpleMaterialPara::Set(const sViewport &view)
#line 29 "/home/usernameak/altona-remake/util/shaders.asc"
{
mvp = view.ModelScreen;
mv = view.ModelView;
size_t mlang_parse_string(char **p, char **sp) {
if(**p != '"') {
return 0;
}
(*p)++;
char *startp = *p;
do {
(*p)++;
if(**p == 0) return 0;
} while(**p != '"');
#define YYCTYPE unsigned char
#define YYCURSOR cursor
#define YYLIMIT limit
#define YYMARKER marker
#define YYFILL(n) {}
#define YYDEBUG(s,c)
const char *cursor = ScriptPtr;
const char *limit = ScriptEndPtr;
std1:
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]](([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+