Skip to content

Instantly share code, notes, and snippets.

@ShawSumma
ShawSumma / timeperf.c
Created October 12, 2022 05:35
It's time to stop!
#include <asm/unistd.h>
#include <inttypes.h>
#include <linux/perf_event.h>
#include <stdio.h>
#include <sys/mman.h>
#include <unistd.h>
#include <stdint.h>
static uint64_t mul_u64_u32_shr(uint64_t cyc, uint32_t mult, uint32_t shift) {
__uint128_t x = cyc;
module source.app;
import std.algorithm;
import std.stdio;
import std.string;
import std.array;
import std.file;
import std.conv : to;
import core.stdc.ctype;
@ShawSumma
ShawSumma / unary.qs
Created January 15, 2021 09:49
Polyfill for Quest to add "Unary" Object.
unary_polyfill_config = {
typename = 'Unary';
aliases = {
'+@' = '+/1';
'+' = '+/2';
'-@' = '-/1';
'-' = '-/2';
:0
}();
debug = {};
---- Minecraft Crash Report ----
WARNING: coremods are present:
CTMCorePlugin (CTM-MC1.12-0.2.3.12.jar)
EnderCorePlugin (EnderCore-1.12.2-0.5.20.jar)
BedPatch (bedpatch-2.2-1.12.2.jar)
TheBetweenlandsLoadingPlugin (TheBetweenlands-3.3.7-core.jar)
OpenModsCorePlugin (OpenModsLib-1.12.2-0.11.5.jar)
AstralCore (astralsorcery-1.12.2-1.8.5.jar)
LoadingPlugin (Quark-r1.4-123.jar)