Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
Compilerrrrrrrrs

Mai lioncash

🔥
Compilerrrrrrrrs
View GitHub Profile
@lioncash
lioncash / BMF.hpp
Created Oct 19, 2016
Doom ByteMap font reader | License: Don't care; WTFPL or public domain, etc, etc.
View BMF.hpp
#pragma once
#include <cstdint>
#include <iosfwd>
#include <string>
#include <vector>
/// Represents a ByteMap v1.1 font
class BMF final
{
@lioncash
lioncash / SquashingCommits.md
Last active Feb 12, 2016
Basic guide for squashing commits using interactive rebase in the CLI
View SquashingCommits.md

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 / LovelyPlanet.asl
Last active Aug 29, 2015
Autosplitter for Lovely Planet 1.41
View LovelyPlanet.asl
// Lovely Planet 1.41
state("LovelyPlanet")
{
bool levelComplete : "LovelyPlanet.exe", 0x00A2D29C, 0xAC, 0x3C0, 0x50, 0xCC, 0xC8;
}
split
{
return current.levelComplete && !old.levelComplete;
}
@lioncash
lioncash / libctru.cfg
Last active Aug 29, 2015
cppcheck configuration file for libctru.
View libctru.cfg
<?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)"/>
View Formatter.hpp
#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 / wally.md
Last active Jun 6, 2021
The Legacy of Wally123
View wally.md