Skip to content

Instantly share code, notes, and snippets.

View bluebear94's full-sized avatar
🦊
fluffy fox

+merlan #flirora bluebear94

🦊
fluffy fox
View GitHub Profile
@bluebear94
bluebear94 / gist:36efec9c667549d2bb20e25b44a50903
Created November 26, 2016 02:33
NCS possible new verb scheme
seruzi → serdi
seruzizzu → serdit
seruzipu → serdjo
seruzitu → serdis
seruzinu → serdyn
seruzipui → serdipi
seruzitui → serdiči
seruzinui → serdini
seruzipuu → serdipe
seruzituu → serdite
@bluebear94
bluebear94 / gist:a71867129ab47cb754992157b988b44e
Created September 7, 2016 04:10
Wizard101 Servers Run On Windows
$ xxd -c 64 WizardGraphicalClient.exe | grep -Fai "C:\\code"
017e6140: 6e74 6572 3c63 6c61 7373 204e 694e 6f64 653e 2c63 6c61 7373 2049 6e50 6c61 6365 416c 6c6f 6361 746f 723e 3a3a 4c6f 6164 4173 7365 7400 0000 633a 5c63 6f64 655c nter<class NiNode>,class InPlaceAllocator>::LoadAsset...c:\code\
017e6440: 4e6f 6465 3e20 3e3a 3a4c 6f61 6400 0000 633a 5c63 6f64 655c 7769 7a61 7264 3130 315c 7769 7a61 7264 5f31 5f33 3130 5c63 6f72 655c 636f 6d6d 6f6e 5c72 6573 6f75 Node> >::Load...c:\code\wizard101\wizard_1_310\core\common\resou
017e6780: 4865 6c70 6572 4f62 6a65 6374 4d61 6e61 6765 722c 756e 7369 676e 6564 205f 5f69 6e74 3634 3e3a 3a6f 7065 7261 746f 7220 2829 0000 0000 0000 433a 5c43 6f64 655c HelperObjectManager,unsigned __int64>::operator ()......C:\Code\
017e8100: 4d4c 5265 636f 7264 2026 3e3a 3a6f 7065 7261 746f 7220 2829 0000 0000 5365 7269 616c 697a 6572 4269 6e61 7279 3a3a 4c6f 6164 0000 0000 0000 433a 5c43 6f64 655c MLRecord &>::operator ()....SerializerBinary::Load......C:\Code\
017fbc80: 200f bc00
$ ./magict
Fixed-point function test: trigonometry
0 -> (3fffffff, 0) -> ffff < 0
1000000 -> (3ffb10c4, 1921561) -> 10009 < ffdf94
2000000 -> (3fec43c6, 323ecc0) -> 10002 < 1ffc4b0
3000000 -> (3fd39b5d, 4b54828) -> 10001 < 30029c2
4000000 -> (3fb11b49, 645e9b5) -> 1000a < 3ff8b23
5000000 -> (3f84c8e3, 7d59395) -> 1000a < 50013df
6000000 -> (3f4eaafe, 9640835) -> 10001 < 5ffd025
7000000 -> (3f0ec9f5, af10a23) -> 1000a < 6ffb554
@bluebear94
bluebear94 / gist:490648a2b6e3677d61e135d19e7e1741
Created May 27, 2016 03:07
I, too, have enough food to feed an army
Comestibles
q - 3 apples
r - 2 bananas
s - 46 C-rations
t - a carrot
u - 13 cram rations
v - 27 food rations
w - 5 fortune cookies
x - 21 K-rations
y - 3 uncursed lembas wafers
/*
post-dev comment:
This is an image editor for the TI-89 (Titanium) that I worked on from 2012 to 2013.
This is its source as of May 4, 2013.
(taken from https://www.omnimaga.org/ti-68k-projects/kraphyko-decthyth-and-the-illusiat-12-port/15/)
Everything is included in one source file, since TIGCC / GCC4TI on Windows had a bug with finding
header files.
This will likely still work if you create a new GCC4TI project and apply the sprite routine fix
@bluebear94
bluebear94 / gist:f5a7afe5396b2626d63546bda400bffa
Created May 5, 2016 23:36
ph3 .dat reverse engineering notes
(mirrored from http://pastebin.com/raw/nt7bbcs0)
0x0 - 0xA: "ArchiveFile"; simple enough.
0xB - 0xE: The number of files, little endian.
0xF: Always 0x1 for some reason.
0x10 - 0x13: The size of the next section, in bytes.
0x14 on: Filename section. Zlib compressed format per RFC 1950.
> Repeated for each file:
> 0x0 - 0x3: The number of bytes that follow
> 0x4 - 0x7: The number of characters in the directory name (dlen).
@bluebear94
bluebear94 / shit.sh
Created April 18, 2016 08:40
Shit - a distributed stink control system
# Define these two functions in your .bashrc.
function subshit {
sed -b "s/git/shit/g;s/Git/Shit/g;s/GIT/SHIT/g"
}
function shit {
set -o pipefail
(git $@ | subshit) 3>&1 1>&2 2>&3 | subshit 3>&1 1>&2 2>&3
}
use v6;
my @adjacentVertices =
0, 1,
0, 2,
1, 3,
2, 3,
4, 5,
4, 6,
5, 7,
@bluebear94
bluebear94 / lulz.md
Last active May 12, 2018 08:16
Fluffy8x / Uruwi's Danmakufu Coding Style

Inspired by Sparen's personal guidelines, though I have followed this style guide for quite a long time.

  • Use the extension .dnh for any Danmakufu files.
  • Encode sources in Shift-JIS only if there are no characters in the source outside ASCII. Otherwise, use UTF-16LE (the only other encoding supported by Danmakufu, unfortunately).
  • In single-line comments, leave one space before and after the //.
  • Start and end multi-line comments on lines that do not contain any code. Leave a space after /* and before */.
  • Leave a space between the #include directive and the file you wish to include.
  • Paths to files to #include should start with either . or ...
  • Use tabs for indentation.
  • Leave one space after a comma.
use v6;
my %stats =
:boss-hp(51),
:player-hp(50),
:player-mana(500),
:shield(0),
:poison(0),
:recharge(0),
:elapsed(0);