Skip to content

Instantly share code, notes, and snippets.

View PeyaPeyaPeyang's full-sized avatar

Peyang PeyaPeyaPeyang

View GitHub Profile
@PeyaPeyaPeyang
PeyaPeyaPeyang / events.json
Created April 2, 2023 01:47
Bukkit/Spigot/Paper のイベントの実装状態を管理してくれる便利Python。
[
{
"name": "AbstractChatEvent",
"description": "チャットに関連するイベントの基底クラス。",
"implemented": false
},
...
]
@PeyaPeyaPeyang
PeyaPeyaPeyang / 0.README.md
Last active January 6, 2023 18:28
JDK Switcher for Windows

JDK Switcher for Windows

The JDK switcher I made in an hour due to sdkman unavailability in pure Windows.

Usage

  • Create a folder with named "sdk" and create "sdks" folder in the folder.
  • Append paths of both folder to %PATH% (system)
  • Download main.py and sdk.bat and put them in the "sdk" folder.
  • Open main.py and change the "SDK_HOME" variable to the path of the "sdks" folder.
@PeyaPeyaPeyang
PeyaPeyaPeyang / 0.README.md
Last active July 29, 2022 13:09
Peyang Pterodactyl Theme - Awesome Pterodactyl theme made by UserStyle
@PeyaPeyaPeyang
PeyaPeyaPeyang / EnableOldStyle.userstyle.css
Last active September 3, 2022 12:42
Restore the old style of Wikipedia.
/* ==UserStyle==
@name Wiki old style
@namespace github.com/peyang-Celeron/OldWiki
@version 1.0.1
@description Comebacks old wikipedia style,
@author Peyang
==/UserStyle== */
@-moz-document regexp("https?://(www\\.)?ja\\.wikipedia\\.org/wiki/.+") {
body > div, body > div > div > div, body > div > div > div > div {
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Alcoal {
public static void main(String[]args) {
System.out.println("年齢を入力してください");
BufferedReader reader =new BufferedReader(new InputStreamReader(System.in));
@PeyaPeyaPeyang
PeyaPeyaPeyang / main.py
Created February 10, 2022 23:48
Maven repository crawler
import requests
import os
import xml.etree.ElementTree as et
RESULT_DIR = "result/"
REPO_META_ROOT_URL = "YOUR REPO HERE" + "/"
LOCAL_UP = False
@PeyaPeyaPeyang
PeyaPeyaPeyang / lvup.java
Last active February 3, 2021 05:38
PvPとかのLV管理用。EXPが次LVを超えた場合、その分もLvUp
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
int current = 119; //Current LEVEL
int currentexp = 10; //Current EXP
int incoming = 40000; //Incoming EXP