Skip to content

Instantly share code, notes, and snippets.

View PeyaPeyaPeyang's full-sized avatar
💭
そろそろ UFO を食べないと死ぬぜ!

Peyang PeyaPeyaPeyang

💭
そろそろ UFO を食べないと死ぬぜ!
View GitHub Profile
@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
@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
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 / 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 {
@PeyaPeyaPeyang
PeyaPeyaPeyang / 0.README.md
Last active July 29, 2022 13:09
Peyang Pterodactyl Theme - Awesome Pterodactyl theme made by UserStyle
@PeyaPeyaPeyang
PeyaPeyaPeyang / LICENSE
Last active August 30, 2022 18:28
Google Homeに雨を喋らせます
MIT License
Copyright (c) 2022 Peyang
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, subject to the following conditions:
@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 / events.json
Created April 2, 2023 01:47
Bukkit/Spigot/Paper のイベントの実装状態を管理してくれる便利Python。
[
{
"name": "AbstractChatEvent",
"description": "チャットに関連するイベントの基底クラス。",
"implemented": false
},
...
]