Skip to content

Instantly share code, notes, and snippets.

View Starciad's full-sized avatar
🥀
A rose's falling

Davi Fernandes Starciad

🥀
A rose's falling
View GitHub Profile
@NYT92
NYT92 / readme.md
Last active November 27, 2024 14:59
myreadingmanga images/video downloader directly from the browser.
@its-truce
its-truce / DecompileMods.md
Last active August 4, 2025 19:04
[tModLoader] How To Decompile Mods

[tModLoader] How To Decompile Mods

NOTE: Please don't copy other people's code unless you have permission. Respect other people's wishes about distributing code. Copying code is plagiarism. This tutorial is only to teach you how to do it.

Please use tomat's fork of ILSpy, which allows you to decompile mods directly in the program: https://github.com/steviegt6/ILSpy. I do not actively make mods anymore, so if you require help you should ask in the tModLoader server.

This is a bite-sized tutorial on how to decompile Terraria mods. If you want to replicate a certain effect that you saw in a mod of your own, you can decompile that mod. Here's how you can do it:

Obtaining the DLL

To obtain the .dll file, we have to use a TML.Patcher, a 3rd party tool for decompiling mods. Here's how you can install and use it: * Open Command Prompt.

@RonenNess
RonenNess / AssetsLoader.cs
Created September 8, 2021 21:12
A utility class to load raw assets into MonoGame without building them as xnb first. To use this, add the MonoGame.Framework.Content.Pipeline and MonoGame.Framework.xxx NuGet packages.
using System;
using System.Linq;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Processors;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Audio;
using MonoGame.Framework.Content.Pipeline.Builder;
using System.Reflection;
using System.IO;
@DavidMcLaughlin208
DavidMcLaughlin208 / IterateBetweenTwoPointsOnMatrix.java
Last active December 8, 2025 00:35
Algorithm to move from one point on a 2D matrix to another in the shortest most logical route
public void iterateAndApplyMethodBetweenTwoPoints(Vector2 pos1, Vector2 pos2, Supplier<FunctionInput> function) {
// If the two points are the same no need to iterate. Just run the provided function
if (pos1.epsilonEquals(pos2)) {
function.invoke();
return;
}
int matrixX1 = pos1.x;
int matrixY1 = pos1.y;
int matrixX2 = pos2.x;
@RabaDabaDoba
RabaDabaDoba / ANSI-color-codes.h
Last active December 4, 2025 04:13 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"
@ppisarczyk
ppisarczyk / Programming_Languages_Extensions.json
Last active December 9, 2025 15:31 — forked from aymen-mouelhi/languages.json
Programming Languages and their File Extensions
[
{
"name":"ABAP",
"type":"programming",
"extensions":[
".abap"
]
},
{
"name":"AGS Script",
@codebreadGist
codebreadGist / gist:8f12f90664f8a66db37b6f0f3f690f1e
Last active December 2, 2024 14:21
Scrolling, word wrapping text with various colors and font styles (Monogame)
Monogame/XNA doesn't allow you to alter the style of a string in the middle of drawing it, so instead you have to draw each
individual piece of a string if you want to bold or italicize a word. This involves knowing how long each bit of string is
and calling DrawString() for each one, all while making sure they line up correctly. Add in the ability to word wrap and
scroll the dialogue one letter at a time and it becomes a pretty painful problem to solve.
To start, I wrote a function that can take a dialogue box width and a string with special formatting strings embedded in it.
The string used for the text above is this:
"I can't {red}shake {blue}the {green}feeling {normal}that {italics}something {normal}belongs here...
Something extraordinarily {bold}ordinary."

Tuning Windows 10 for Slow Machines

Windows 10 on slow netbook

This guide is for those who dares to install Windows 10 on slow netbooks (1GB of RAM).
Though Windows update program is over, you still may use old Windows product keys from license stickers to install Windows 10 on old machines.

UPD Jan 2019
This article is quite old, some instructions may be obsolete.

@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no