Skip to content

Instantly share code, notes, and snippets.

@QbeRoot
QbeRoot / infodump.c
Created December 12, 2021 18:36
Source code for the Super Mario Sunshine position/angle/speed display Gecko code (build with https://github.com/BitPatty/Super-Mario-Sunshine-C-Kit)
#include <stdio.h>
#include "sms.h"
static J2DTextBox tb;
static int loaded = 0;
void OnSetup(MarDirector* director) {
JUTRect r;
MarDirector_SetupObjects(director);
@fbaierl
fbaierl / ForkMITLicensedProject.md
Created November 6, 2018 14:17
HOWTO fork a MIT licensed project

No, you are not allowed to change the copyright notice. Indeed, the license text states pretty clearly:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

But you are allowed to add a copyright notice.

If you want to keep the MIT license, which is what I would advise you to do, you only need to add a single line to the license file, before or after Copyright (c) 2012 Some Name with your own copyright notice. The final LICENSE file will look like this:

The MIT License (MIT)

/*
.:SM64 Hitbox view hack:.
April 2018
This one-time RAM-modification displays collision triangles and object cylinders in Super Mario 64.
With L + D-pad up you toggle cylinders, with L + D-pad down you toggle collision triangles.
Compiled with: https://github.com/notwa/lips
Save this file as 'hitboxview.asm' in the lips folder, and create a Lua script 'apply_hitboxhack.lua':
```
local lips = require "lips.init"
@kaiware007
kaiware007 / AlwaysTopWindow.cs
Last active June 9, 2023 08:24
ウィンドウを常に最前面に出るフラグを立てる for Unity
using UnityEngine;
using System.Runtime.InteropServices;
using System;
using System.Threading;
public class AlwaysTopWindow : MonoBehaviour {
/// <summary>
/// 常に前面に出るか?