Channel |
---|
#announce |
#arabic |
#balkan |
#bulgarian |
#cantonese |
#chinese |
This file contains 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
// ==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 |
This file contains 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
# 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 = ["-"] } |
This file contains 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
from PIL import Image | |
import math | |
# open and load image | |
img = Image.open("image.jpg") | |
img.load() | |
# convert to grayscale | |
img = img.convert("L") |
This file contains 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
#!/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 | |
# |
This file contains 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 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 |
This file contains 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
-- 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) |
This file contains 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 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") |
This file contains 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
:: 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 |
This file contains 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 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) |
NewerOlder