Skip to content

Instantly share code, notes, and snippets.

View actioninja's full-sized avatar
🎏
yeah

Rob Bailey actioninja

🎏
yeah
View GitHub Profile
@actioninja
actioninja / .rustfmt.toml
Last active July 16, 2023 12:57
ActionFlavored(tm) Rust
# A set of sane, extremely close to "standard rust" style options
# Mostly just utilizes some common convention that is not currently
# agressively formatted by rustfmt, because I agree with said
# convention.
# Each option is commented with what effect it actually has.
# Enable unstable features
unstable_features = true
# Max blank lines between any statement
@actioninja
actioninja / MetaData.cs
Created March 28, 2023 09:19
SimPE internal file that defines a bunch of magic constants used by internal files
/***************************************************************************
* Copyright (C) 2005 by Ambertation *
* quaxi@ambertation.de *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
@actioninja
actioninja / bitvec_ab.rs
Last active November 22, 2022 03:50
bitvec example
use bitvec::bitarr;
use bitvec::field::BitField;
use bitvec::order::Msb0;
use bitvec::view::BitView;
use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion};
// filler for the enum variant used here
struct ShortCommand {
offset: u16,
length: u8,