Skip to content

Instantly share code, notes, and snippets.

@Xtansia
Xtansia / Makefile
Created January 18, 2017 08:44
Exceptions and 3dsxtool
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(DEVKITARM)),)
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
endif
TOPDIR ?= $(CURDIR)
include $(DEVKITARM)/3ds_rules
@Xtansia
Xtansia / devkitARM-windows-setup.md
Last active June 6, 2018 13:56
Setting up devkitARM to build LövePotion on Windows, Applicable to most 3DS homebrew however
  1. Run devkitProUpdater-1.6.0.exe, devkitARM is the only thing you need to install.
  2. Setup MSYS2: (Skip this if you already have properly setup MSYS2)
  3. Download and install MSYS2 following instructions here.
  4. Run MSYS2 64bit > MSYS2 MinGW 64 bit from Start.
  5. Run the following to install the necessary tools:
pacman --needed -S base-devel git mingw-w64-x86_64-toolchain

Keybase proof

I hereby claim:

  • I am xtansia on github.
  • I am xtansia (https://keybase.io/xtansia) on keybase.
  • I have a public key ASAMDdDea9YZ-NUQEXG6Uc0ds2FQvdWW5WfH39LKQS_qFwo

To claim this, I am signing this object:

@Xtansia
Xtansia / synthetic_division.lua
Last active October 23, 2015 13:14
Synthetic Division in lua
local function synthetic_division (polynomial, divisor_factor)
local degree = table.maxn(polynomial)
local work_table = {
[degree] = polynomial[degree]
}
for i = degree - 1, 0, -1 do
work_table[i] = (polynomial[i] or 0) + work_table[i + 1] * divisor_factor
end