Skip to content

Instantly share code, notes, and snippets.

View Mijyuoon's full-sized avatar
😂
Peak procrastination mode

Mijyuoon Mijyuoon

😂
Peak procrastination mode
View GitHub Profile
@Mijyuoon
Mijyuoon / romaji.lua
Last active April 13, 2023 00:28
Kana to rōmaji converter.
local rom = {}
rom.__index = rom
rom.load_url = "https://gist.githubusercontent.com/Mijyuoon/e26062b1889460c9df1515b12170f14a/raw/romaji.lua"
rom.subst = {
{"きゃ", "kya"}, {"きゅ", "kyu"}, {"きょ", "kyo"},
{"ぎゃ", "gya"}, {"ぎゅ", "gyu"}, {"ぎょ", "gyo"},
{"キャ", "kya"}, {"キュ", "kyu"}, {"キョ", "kyo"},
@Mijyuoon
Mijyuoon / better-discord.css
Last active October 4, 2021 07:03
Custom discord theme
/* -- Hide "Blocked Messages" frames -- */
.messageGroupBlocked-3wrQQX {
display: none !important;
}
/* -- Unfuck font sizes, fuck Discord -- */
.base-1x0h_U,
.title-eS5yk3,
@Mijyuoon
Mijyuoon / lorenz.lua
Last active August 5, 2022 22:30
Encryption™
me.lorenz = {}
me.lorenz.wk = {
chi = {
"11001110011111110101101111101001110111100",
"1010111001010110101101010010110",
"01010100011100111101101000011",
"00100001011111011000010111",
"10111110100000110101100",
};
@Mijyuoon
Mijyuoon / mijhud.lua
Created October 2, 2018 15:49
MijHUD core loader
if SERVER then
local flist = file.Find("mijhud/*.lua", "LSV")
for _, fname in ipairs(flist) do
if not fname:find("%.lua$") then continue end
print("[Mij SV] Transmit mijhud/"..fname)
AddCSLuaFile("mijhud/"..fname)
end
end
if CLIENT then
@Mijyuoon
Mijyuoon / MiniMap.java
Created October 15, 2018 07:47
Shitty MC minimap code
public void updateDisplayVars(Shape shape, Position position, boolean force) {
if (this.dv != null && !force && this.mc.field_71440_d == this.dv.displayHeight && this.mc.field_71443_c == this.dv.displayWidth && this.dv.shape == shape && this.dv.position == position && this.dv.fontScale == (double)this.miniMapProperties.fontScale.get().intValue()) {
return;
}
this.initGridRenderer();
if (force) {
shape = (Shape)this.miniMapProperties.shape.get();
position = (Position)this.miniMapProperties.position.get();
}
this.miniMapProperties.shape.set(shape);
@Mijyuoon
Mijyuoon / md5.lua
Created October 19, 2018 20:02
Lua MD5
md5 = {}
local char, byte, format, rep, sub =
string.char, string.byte, string.format, string.rep, string.sub
local bit_or, bit_and, bit_not, bit_xor, bit_rshift, bit_lshift
do
bit_not = bit.bnot
local tobit = function(n)
@Mijyuoon
Mijyuoon / BaseModel.cs
Created October 29, 2018 20:12
WPF BaseModel
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace Mijyuoon.MVVM {
public abstract class BaseModel : INotifyPropertyChanged {
#region INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
@Mijyuoon
Mijyuoon / ShittyEnglish.txt
Last active July 8, 2019 12:41
Shitty English
Shitty English v0.3
===================
Noun Cases
----------
NOM -Ø
GEN -(e)s
ACC -(e)m
DAT -(e)t
INS -with
@Mijyuoon
Mijyuoon / discord-image-archive.rb
Last active July 16, 2019 06:04
Discord image archiving script
require 'rest-client'
require 'json'
require 'time'
require 'digest/sha1'
require 'fileutils'
TARGET_CHAN = "CHANNEL_ID"
ARCHIVE_FROM_ID = nil # or "MESSAGE_ID"
ARCHIVE_UNTIL = Time.parse "2018-01-01"
BATCH_MIN_WAIT = 5.000
@Mijyuoon
Mijyuoon / Program.cs
Created August 17, 2019 03:04
IntelDPSTDisable
using System;
using Microsoft.Win32;
namespace IntelDPSTDisable {
class Program {
static string RegPath = @"System\{0}\Control\Class\{{4d36e968-e325-11ce-bfc1-08002be10318}}\{1}";
static string[] CSs = new[] { "ControlSet001", "CurrentControlSet" };
static string[] IDs = new[] { "0000", "0001" };
static string FeatValue = "FeatureTestControl";