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
| /** | |
| * Permet de générer un nombre à virgule représentant | |
| * la différence entre les valeurs (nombres) contenues entre les deux json. | |
| * | |
| * Plus la différence entre un nombre des deux jsons est importante, | |
| * plus elle est intensifiée par une fonction exponentielle. | |
| * | |
| * Une valeur de sortie de 0.0 est retournée si les deux json sont identiques. | |
| * Dans le cas contraire, une valeur de sortie supérieure à 1.0 est retournée, | |
| * et elle n'a pas de valeur maximale. |
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 your.package; | |
| import org.jetbrains.annotations.NotNull; | |
| import java.util.Date; | |
| import java.util.Iterator; | |
| import java.util.Map; | |
| import java.util.concurrent.ConcurrentHashMap; | |
| import java.util.concurrent.Executors; | |
| import java.util.concurrent.ScheduledExecutorService; |
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 wtf.listenia.api.utils.minecraft; | |
| import org.bukkit.World; | |
| import org.bukkit.entity.Player; | |
| import org.apache.commons.lang3.StringUtils; | |
| import java.util.*; | |
| import java.util.function.Function; | |
| import java.util.regex.Matcher; |
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 fr.wizmc.api.utils.textual; | |
| import java.util.StringJoiner; | |
| import java.util.concurrent.TimeUnit; | |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| /** | |
| * Permet de manipuler les durée au niveau littéral | |
| * |
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 wtf.listenia.core.api.injector; | |
| import de.leonhard.storage.Config; | |
| import org.json.JSONObject; | |
| import java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| import java.net.URL; | |
| import java.net.URLConnection; | |
| import java.util.HashSet; |
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.*; | |
| public class CryptTest { | |
| private static final List<Character> alpha = Arrays.asList('R', 'Z', 'Y', 'E', 'S', 'D', 'Q', 'B', 'N', 'F', 'T', 'X', 'P', 'K', 'H', 'A', 'U', 'V', 'M', 'O', 'J', 'C', 'L', 'W', 'G', 'I', 'é', 'è', '@', ' ', 'k', 'p', 'l', 'n', 'b', 'g', 'r', 'a', 'q','e', 'm', 's', 'q', 'h', 'f', 'i', 'j', 'c', 'd', 'u', 'x', 'v', 'z', 'y', 'w', '6', '1', '3', '7', '8', '2', '4', '9', '5', '1', '0', ',', '!'); | |
| // please randomify yourself !! | |
| public static void main (String[] args) { | |
| Integer[] numbers = new Integer[]{8,6,3,4,7,9,3,2,6,5,7,8,4,3,6,8,9,4,1,8}; // private key, X elements = X allowed lenght characters |
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
| public class CompressStr2Int { | |
| public static void main (String[] args) { | |
| System.out.println(generateStr(generateInt("SUNDAY"))); | |
| /* | |
| Objective: returned value must be exact to the argument | |
| Status: Successfull | |
| */ | |
| } |