Skip to content

Instantly share code, notes, and snippets.

View Reyuu's full-sized avatar
🌸
~enjoying life~

Adrianna Getka Reyuu

🌸
~enjoying life~
View GitHub Profile
@Reyuu
Reyuu / RPGMaker.net_Dark_Mode.user.js
Last active January 18, 2024 16:40
Adds dark mode to RPGMaker.net
// ==UserScript==
// @name RPGMaker.net Dark Mode
// @namespace http://tampermonkey.net/
// @version 2024-01-18
// @description Add dark mode to this godforsaken website.
// @author Rey
// @match https://rpgmaker.net/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=rpgmaker.net
// @grant none
// @run-at document-body
@Reyuu
Reyuu / languages.toml
Created June 16, 2023 18:18
Godot Language Server configuration for Helix editor
# languages.toml location -> https://docs.helix-editor.com/languages.html#languagestoml-files
[[language]]
name = "gdscript"
scope = "source.gdscript"
injection-regex = "gdscript"
file-types = ["gd"]
shebangs = []
roots = ["project.godot"]
auto-format = true
formatter = { command = "gdformat", args = ["-"] }
@Reyuu
Reyuu / img2ascii.py
Created October 21, 2022 16:11
Convert image to text characters
from PIL import Image
import math
# open and load image
img = Image.open("image.jpg")
img.load()
# convert to grayscale
img = img.convert("L")
@Reyuu
Reyuu / generate_aseprite_package.sh
Created July 7, 2021 22:17
Creates package.json for Aseprite for GPL palettes extension.
#!/bin/bash
# Creates package.json for Aseprite. Put GPL palettes and this script in one folder in extensions folder.
# Example:
# extensions/imported-palettes
# extensions/imported-palettes/my_palette.gpl
# extensions/imported-palettes/generate_aseprite_package.sh
#
# then
#
@Reyuu
Reyuu / CustomManu.py
Created June 5, 2021 15:20
Simple curses GUI in 100 lines.
import curses
class Entry:
def __init__(self, text, fn, x_offset=0, y_offset=0, left_fn=None, right_fn=None) -> None:
self.text = text
self.fn = fn
self.x_pos_offset = x_offset
self.y_pos_offset = y_offset
self.left_fn = left_fn
self.right_fn = right_fn
@Reyuu
Reyuu / reyie-logs-archive.md
Created October 7, 2020 18:32
This is an archive of osu logs from reyie.com site
-- Copies currently displayed subtitles to clipboard automatically.
-- Use CTRL+B to enable or disable.
-- Default behaviour is disabled on start.
utils = require 'mp.utils'
automatic_copy = false
last_value = ""
function bool_to_number(value)
@Reyuu
Reyuu / MT_pot.py
Created June 10, 2020 23:27
MT PO file with Google translate. Generates PO file that has targets filled with machine translation. Requires googletrans and polib to be installed.
import googletrans
import polib
import sys
import shutil
import argparse
parser = argparse.ArgumentParser(description="MT PO file with Google translate. Requires googletrans and polib to be installed.")
parser.add_argument("input_pot", help="input POT file")
parser.add_argument("-t", "--target", help="target language in lowercase ISO 3166-1 alpha-2")
@Reyuu
Reyuu / valorant-no-vgc-in-bg.cmd
Last active April 15, 2020 22:30
VALORANT anti-cheat background process prevention script
:: Set RIOT_CLIENT_PATH to the path with the client, should be the same as "Start in" path given in Valorant desktop shortcut
SET RIOT_CLIENT_PATH="D:/Riot Games/Riot Client"
:: Go to that path
cd %RIOT_CLIENT_PATH%
:: Launch the game as normal, launcher also hangs in memory, taking around 110MB of RAM (stupid design)
start /WAIT "" "RiotClientServices.exe" --launch-product=valorant --launch-patchline=live
:: Kill the bitch (vgc.exe)
taskkill /f /im vgc.exe
@Reyuu
Reyuu / example_pywebview.py
Created March 19, 2020 23:25
Example pywebview
import webview
import jinja2
def load_css(window):
with open("style.css") as f:
window.load_css(f.read())
def create_html(*args, **kwargs):
templateloader = jinja2.FileSystemLoader(searchpath="./")
templateEnv = jinja2.Environment(loader=templateloader)