Skip to content

Instantly share code, notes, and snippets.

View lioncash's full-sized avatar
🔥
Compilerrrrrrrrs

Mai lioncash

🔥
Compilerrrrrrrrs
View GitHub Profile
@lioncash
lioncash / wally.md
Last active June 6, 2021 08:07
The Legacy of Wally123
@lioncash
lioncash / Formatter.hpp
Last active August 29, 2015 14:03
Formatting
#pragma once
#include <cctype>
#include <iomanip>
#include <sstream>
#include <string>
#include <type_traits>
// A type-safe formatter that performs formatting using variadics and does
// not use any form of the printf family to do formatting.
@lioncash
lioncash / libctru.cfg
Last active August 29, 2015 14:14
cppcheck configuration file for libctru.
<?xml version="1.0"?>
<def format="1">
<!-- console.h -->
<define name="CONSOLE_COLOR_BOLD" value="(1&lt;&lt;0)"/>
<define name="CONSOLE_COLOR_FAINT" value="(1&lt;&lt;1)"/>
<define name="CONSOLE_ITALIC" value="(1&lt;&lt;2)"/>
<define name="CONSOLE_UNDERLINE" value="(1&lt;&lt;3)"/>
<define name="CONSOLE_BLINK_SLOW" value="(1&lt;&lt;4)"/>
<define name="CONSOLE_BLINK_FAST" value="(1&lt;&lt;5)"/>
<define name="CONSOLE_COLOR_REVERSE" value="(1&lt;&lt;6)"/>
@lioncash
lioncash / LovelyPlanet.asl
Last active August 29, 2015 14:26
Autosplitter for Lovely Planet 1.41
// Lovely Planet 1.41
state("LovelyPlanet")
{
bool levelComplete : "LovelyPlanet.exe", 0x00A2D29C, 0xAC, 0x3C0, 0x50, 0xCC, 0xC8;
}
split
{
return current.levelComplete && !old.levelComplete;
}
@lioncash
lioncash / SquashingCommits.md
Last active September 1, 2023 07:14
Basic guide for squashing commits using interactive rebase in the CLI

1. Find the commit hash before the commit you want to squash

Say you make three commits, each one labeled "First commit", "Second commit", and "Third commit" respectively. Now, you want to squash the third commit into the second commit. You'll want to get the hash for the commit behind the commit we want to squash things into, so the commit that we're squashing things into shows up in the staging area.

So, type git log and hit enter and you'll be presented with the following screen:

You'll want to use the Git hash that belongs to the commit labeled "First commit", since it's the commit behind the one you want to squash commits into.

@lioncash
lioncash / BMF.hpp
Created October 19, 2016 04:22
Doom ByteMap font reader | License: Don't care; WTFPL or public domain, etc, etc.
#pragma once
#include <cstdint>
#include <iosfwd>
#include <string>
#include <vector>
/// Represents a ByteMap v1.1 font
class BMF final
{
@lioncash
lioncash / signalis.md
Last active April 8, 2023 03:23
A light review of SIGNALIS

SIGNALIS

A minor review or something because I need to get this out of my system or I'll go nuts. I am not good at writing reviews about games past variants of "this owns" or "it aint for me" most of the time, so pls be kind.

Preface/Primer/Whatever

SIGNALIS is a sci-fi survival-horror game developed by the (2 person) indie studio rose-engine that takes inspiration from a multitude of sources. Ranging from other video games to several literary resources, with the game even straight-up including a copy of the book The King in Yellow in it.

The main, concise, spoiler-free description of the premise is that you play as an android named Elster that seemingly has crash-landed on a snow-laden planet and you're looking for someone very important. Naturally, as with most survival-horror games, Things Don't Seem Right™.