Skip to content

Instantly share code, notes, and snippets.

View ImanCol's full-sized avatar

Marlon rodriguez ImanCol

View GitHub Profile
-- Script for first person in Silent Hill in BizHawk
--
-- Submit improvments at https://gist.github.com/samfromcadott
--
-- Copyright 2021 Sam Jackson
-----------------------------
-- Memory addresses
-----------------------------
@foone
foone / rptimage.py
Created September 19, 2020 04:11
RPT decoder for Super Mario 64 RPT textures from Super Mario 3D All-Stars
# To use:
# 1. extract the NCAs from the NSP (I used NSCB)
# 2. extract the contents of 5977df9d4848858cbde157c6723dd1de.nca
# 3. inside 1 [romfs]\rom\Stardust_JP\Textures you'll find texture_pack.cpio. Extract it (I uzed 7zip)
# 4. run this python 2.7 script in the directory with all the .rpt files. It'll create a out folder containing all the PNGs
import struct,glob,os,zlib
from PIL import Image
OUTDIR='out'
@ImanCol
ImanCol / Arduino_3DCube_Control.ino
Last active August 9, 2020 19:09
Zirrfa DIY Cubo LED 8x8x8 ARDUINO
/*//Arduino_3DCube_Control
//Command must be at 38400 baud
0xAD //Abrir menu para puerto de Serie para Arduino
0xf2 //Abrir Comando para introducir animacion
0xED //Salir completamente del modo Arduino
//serial data show ARDUINO,display command data 65,Each time data 64 COUNT+0xF2
*/
#include <stdio.h>
#define LAYER_COUNT 8
@mzandvliet
mzandvliet / DspApplication.cs
Last active August 4, 2024 18:17
A quick example of how to play a mouse-controlled sine wave using the DSPGraph preview package
using UnityEngine;
using Unity.Collections;
using Unity.Audio;
using Unity.Mathematics;
using Unity.Burst;
using System.Collections;
/*
For allocations inside AudioKernels, use Allocator.AudioKernel
*/
@reunono
reunono / CinemachineCameraShaker.cs
Last active January 16, 2023 07:51
Cinemachine camera shake
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Add this component to your Cinemachine Virtual Camera to have it shake when calling its ShakeCamera methods.
/// </summary>
public class CinemachineCameraShaker : MonoBehaviour
{
@myguaguagua
myguaguagua / a.c
Created September 13, 2017 07:59
ssss
#include "STC15F2K60S2.H"
#include <intrins.h>
#define uchar unsigned char
#define uint unsigned int
#define ADC_POWER 0x80 // adc总开关
#define ADC_FLAG 0x10
#define ADC_START 0x08
#define ADC_SPEED_90 0x60
@zkreations
zkreations / blogger.xml
Created October 19, 2016 18:06
Plantilla Básica de blogger
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html lang='es'>
<head>
<title>Hola mundo</title>
<b:skin>
<![CDATA[
]]>
@FullStackForger
FullStackForger / .gitignore
Last active January 24, 2025 18:03
.gitignore for Unity3d project
###
# Unity folders and files
###
[Aa]ssets/AssetStoreTools*
[Bb]uild/
[Ll]ibrary/
[Ll]ocal[Cc]ache/
[Oo]bj/
[Tt]emp/
[Uu]nityGenerated/
@mattbenic
mattbenic / SpecificInstanceOfGameExample.cs
Last active June 11, 2023 14:40
Example of using Win32 API to get specific window instance in Unity. This is useful for when running multiple instances of the same application, as the window handle can then be used to correctly position and size the different windows for multi screen use.
using UnityEngine;
using System;
using System.Runtime.InteropServices;
using System.Text;
public class SpecificInstanceOfGameExample : MonoBehaviour
{
#region DLL Imports
private const string UnityWindowClassName = "UnityWndClass";