Skip to content

Instantly share code, notes, and snippets.

@Europia79
Europia79 / _FIX_HEADER.sh
Created October 18, 2023 08:45
Automatically fixes headers for VGM Player v3.30
#!/bin/bash
# _FIX_HEADER.sh by Europia79
##########################################
# README #
##########################################
# (1) This script requires Linux, Mac, or Git-for-Windows:
# https://gitforwindows.org/
# https://git-scm.com/download/win
# (2) Requires a ROM set:
# https://r-roms.github.io/
@Europia79
Europia79 / _save_headers.sh
Created October 18, 2023 08:44
Save Headers for Sega Mega Drive ; Genesis ; 32x
#!/bin/bash
# _save_headers.sh by Europia79
##########################################
# README #
##########################################
# (1) This script requires Linux, Mac, or Git-for-Windows:
# https://gitforwindows.org/
# https://git-scm.com/download/win
# (2) Requires a ROM set:
# https://r-roms.github.io/
@Europia79
Europia79 / nes.sh
Last active September 11, 2023 19:41
#!/bin/bash
# NES Flips Wrapper by Europia79
##########################################
# README #
##########################################
# (1) This script requires Linux, Mac, or Git-for-Windows:
# https://gitforwindows.org/
# https://git-scm.com/download/win
# (2) This script also requires Floating IPS (flips) v1.31:
# https://github.com/Alcaro/Flips
01.[00].<W> Anaheim MightyDucks| (ANA):(Team Scrooge McDuck)
02.[01].<W> Atlantis Islanders | (ATL):(Team Stargate)
03.[02].{E} Boston Bronies | (BOS):(Team Swagger,Bourne,Wick)
04.[03].{E} Buffalo Sabertooths| (BUF):(Team Magneto & Sabertooth)
05.[04].<W> Carolina Dobermans | (CAR):(Team Superman & Supergirl)
06.[05].<W> Chicago Blackhawks | (CHI):(Team Iron-Man)
07.[06].{E} Col Moose-Knuckles | (COL):(Team South-Park)
08.[07].<W> Columbus Commanders| (CLB):(Team Star-Trek)
09.[08].<W> Dallas S.T.A.R.S. | (DAL):(Team Sony)
10.[09].{E} Detroit Ragnaroks | (DET):(Team Thanos)
public boolean in3050(int a, int b) {
Range range3 = new Range(30, 40);
Range range4 = new Range(40, 50);
return range3.contains(a,b) || range4.contains(a,b);
}
class Range {
int min;
int max;
public Range(int min, int max) {
@Europia79
Europia79 / Main.vc
Last active December 19, 2017 12:34
[C%] Experimental syntax called Function Builder Notation
class Main {
/**
* main() function that demonstrates the syntax of Function Builder Notation
*
* .returns(void) would be optional since it doesn't actually return anything
* .captures() is optional since it doesn't actually capture anything
* .throws() is optional since it doesn't actually throw any Exceptions
*
* This notation attempts to provide a consistent way to declare
@Europia79
Europia79 / TaskChain.java
Created May 1, 2016 07:39 — forked from aikar/TaskChain.java
TaskChain v2.3.2 - Java 8 Version - Released Open Source Under MIT - Pre Java8 version here: https://gist.github.com/aikar/9010136 - learn about TC: http://aikar.co/2014/02/14/java-async-flow-control-library-bukkit/
/*
* Copyright (c) 2015. Starlis LLC / dba Empire Minecraft
*
* MIT License:
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
* Software, and to permit persons to whom the Software is furnished to do so,