Skip to content

Instantly share code, notes, and snippets.

View chyyran's full-sized avatar
💮
大変よくできました!

Ronny Chan chyyran

💮
大変よくできました!
View GitHub Profile
use std::borrow::Cow;
use std::collections::hash_map::Entry;
use rspirv::dr::{Builder, InsertPoint, Instruction, Module, Operand};
use rustc_hash::{FxHashMap, FxHashSet};
use spirv::{Decoration, Op, StorageClass, Word};
pub struct Pass<'a> {
pub builder: &'a mut Builder,
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace Snowflake.Support.Orchestration.Overlay.Runtime.Windows.Hooks
{
/// <summary>
CRC_START 0051d9b0 (0011cdb0)
SHA1_START 005332f0 (001326f0)
TEXT_START 00441598 (0040998)
400C00
Chessmaster, The (U) (PRG1) [!p].nes 7df6320c 100489462ceb0756dfb06d418f26445dda9c002b
Maxi 15 (HES) (Green Version) [!p].nes 39484cc9 5e97182be1bf430a4799ced61337ac16506a9ed8
@chyyran
chyyran / Cargo.toml
Last active January 1, 2022 09:15
stripnesheader
[package]
name = "stripnesheader"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1"
tempfile = "3"
@chyyran
chyyran / flashcarthelper.bat
Last active June 25, 2019 20:22
flashcarthelper 0.9
@echo off
::Log Start message
echo --Start log FlashcartHelper %time% %date%-- >> fh.log
::Forces move, copy and other commands to suppress confirmation
SET COPYCMD=/Y
::Determines if FlashcartHelper runs in the Desktop, Userprofile, Windows direcory, Documents folder, or root. If yes, FH will refuse to run.
IF "%cd%" EQU "%userprofile%\Desktop" goto invpath
IF "%cd%" EQU "%userprofile%" goto invpath
IF "%cd%" EQU "%windir%\*" goto invpath
IF "%cd%" EQU "C:" goto invpath
@chyyran
chyyran / Makefile
Last active February 23, 2019 03:49
GRF Makefile
ifeq ($(strip $(DEVKITARM)),)
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
endif
include $(DEVKITARM)/ds_rules
GRIT := grit
texture tex : WAVEFORMDATA;
sampler sTex = sampler_state
{
Texture = (tex);
MipFilter = LINEAR;
MinFilter = LINEAR;
MagFilter = LINEAR;
AddressU = Clamp;
[General]
Device=Speakers / Headphones, Realtek Audio
PreAmp=-4.5
[Speakers]
SpeakerId0=0
SpeakerTargets0=all
SpeakerName0=All
SpeakerId1=1
SpeakerTargets1=L
SpeakerName1=Left
@chyyran
chyyran / ExampleOutput.txt
Last active June 24, 2024 21:57
Easily save and load any Java object* to a text file
4
$type|FullTimeStaff
yearlySalary|100000.0
sickDaysLeft|20.0
firstName|Bob
lastName|Ross
employeeNumber|1
---
$type|FullTimeStaff
yearlySalary|50000.0
@chyyran
chyyran / ConfigSchema.yml
Last active November 10, 2016 03:39
Snowflake Configuration Schema
values:
BooleanValue:
value: true
guid: 0000-0000-0000-0000
StringValue:
value: "String"
guid: 0000-0000-0000-0000
PathValue:
value: "C:\\Some\\Path.rom"
guid: 0000-0000-0000-0000