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
| using System; | |
| using System.IO; | |
| using System.Security.Cryptography; | |
| namespace Crypto | |
| { | |
| public static class RFC2898AESCrypto | |
| { | |
| // Legacy | |
| public static readonly byte[] SALT = new byte[] |
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
| using System; | |
| using System.IO; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| namespace Cryptography | |
| { | |
| public struct RSAKeyPairString | |
| { | |
| public string publicKey; // 公鑰 |
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
| #pragma once | |
| #include <iostream> | |
| template<class CharacterType, class Trait = std::char_traits<CharacterType>> | |
| struct TeeStream : std::basic_streambuf<CharacterType, Trait> { | |
| private: | |
| std::basic_streambuf<CharacterType, Trait>* sourceBuffer; | |
| std::basic_streambuf<CharacterType, Trait>* destinationBuffer; | |
| protected: |
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
| #pragma once | |
| #include <Windows.h> | |
| #include <TlHelp32.h> | |
| DWORD getProcessIdByCreate(const char* programPath, OUT HANDLE* createHandle) { | |
| STARTUPINFO startupInformation; | |
| PROCESS_INFORMATION processInformation; | |
| memset(&startupInformation, 0, sizeof(startupInformation)); | |
| memset(&processInformation, 0, sizeof(processInformation)); |
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 ew.sr.x1c.quilt.meow.plugin.util; | |
| import java.util.Spliterator; | |
| import java.util.function.BiConsumer; | |
| import java.util.stream.Stream; | |
| public class BreakableForEach { | |
| public static class Breaker { |
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 ew.sr.x1c.quilt.meow.plugin; | |
| import org.bukkit.ChatColor; | |
| import org.bukkit.command.Command; | |
| import org.bukkit.command.CommandExecutor; | |
| import org.bukkit.command.CommandSender; | |
| import org.bukkit.Bukkit; | |
| import org.bukkit.scheduler.BukkitRunnable; | |
| public class GameRuleSetCommand implements CommandExecutor { |
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 ew.sr.x1c.quilt.meow.plugin; | |
| import java.io.FileWriter; | |
| import java.io.IOException; | |
| import net.md_5.bungee.api.ChatColor; | |
| import org.bukkit.Bukkit; | |
| import org.bukkit.Chunk; | |
| import org.bukkit.World; | |
| import org.bukkit.command.Command; | |
| import org.bukkit.command.CommandExecutor; |
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 ew.sr.x1c.quilt.meow.plugin.experiment.channel; | |
| import ew.sr.x1c.quilt.meow.plugin.experiment.Main; | |
| import java.util.Arrays; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.logging.Level; | |
| import org.bukkit.Bukkit; | |
| import org.bukkit.entity.Player; | |
| import org.bukkit.event.EventHandler; |
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
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| using namespace std; | |
| struct SplitResult { | |
| string odd = "", even = ""; | |
| }; |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Threading; | |
| namespace FullCPUCrash | |
| { | |
| public static class Program | |
| { | |
| private static readonly IList<Thread> threadList = new List<Thread>(); |
OlderNewer