This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A quick enum for getting the amount of slots in an inventory row. | |
| * Used to prevent illegal arguments when creating an inventory. | |
| * | |
| * @author Justis | |
| * | |
| */ | |
| public enum Rows { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; | |
| import java.net.UnknownHostException; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.UUID; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.HashMap; | |
| import java.util.Iterator; | |
| import java.util.Map; | |
| import java.util.Set; | |
| import java.util.concurrent.ConcurrentHashMap; | |
| import org.bukkit.event.Event; | |
| import org.bukkit.event.EventHandler; | |
| import org.bukkit.event.Listener; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.math.BigDecimal; | |
| import java.math.RoundingMode; | |
| import java.util.concurrent.ConcurrentMap; | |
| import com.google.common.collect.MapMaker; | |
| public class Unit { | |
| private static ConcurrentMap<String, Unit> POOL = new MapMaker().weakValues().concurrencyLevel(1).initialCapacity(666).makeMap(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.HashSet; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.Set; | |
| public final class Minifier { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %YAML 1.2 | |
| --- | |
| name: HMFF | |
| file_extensions: [hmff] | |
| scope: source.c | |
| contexts: | |
| main: | |
| - match: "^\\s*?(#).*" | |
| scope: comment.line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.gmail.justisroot.autoecon; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import com.gmail.justisroot.autoecon.command.SoftCommand; | |
| import com.gmail.justisroot.autoecon.data.EventProvider; | |
| import com.gmail.justisroot.autoecon.data.FilePool; | |
| import com.gmail.justisroot.autoecon.data.ScheduledSave; | |
| import com.gmail.justisroot.autoecon.data.file.UserData; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| final class AccessorTest { | |
| @Test // SUCCESS | |
| @DisplayName("Verify MethodHandles.Lookup constructor") | |
| void lookupConstructorAvailabilityTest() { | |
| Assertions.assertDoesNotThrow(() -> Accessor.newLookupConstructor()); | |
| } | |
| @Test // SUCCESS | |
| @DisplayName("Verify available matching instance method is called") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.gmail.justisroot.broker; | |
| import java.math.BigDecimal; | |
| import java.util.UUID; | |
| import org.spongepowered.api.item.inventory.Inventory; | |
| import org.spongepowered.api.item.inventory.ItemStack; | |
| public interface Broker { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # First, check out the commit you wish to go back to (get sha-1 from git log) | |
| git reset --hard 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a | |
| # Then do a forced update. | |
| git push origin +9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a^:develop | |
| # Push specific commit | |
| git push origin 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a:develop -f |