Skip to content

Instantly share code, notes, and snippets.

Avatar
🧦
Go ahead, put on the programming socks

DeflatedPickle DeflatedPickle

🧦
Go ahead, put on the programming socks
View GitHub Profile
@DeflatedPickle
DeflatedPickle / TabbedPanel.java
Last active Sep 1, 2020
A tabbed panel implementation for LeGUI.
View TabbedPanel.java
package org.liquidengine.legui.component;
import org.joml.Vector2f;
import org.liquidengine.legui.component.optional.align.HorizontalAlign;
import org.liquidengine.legui.component.optional.align.VerticalAlign;
import org.liquidengine.legui.event.MouseClickEvent;
import org.liquidengine.legui.icon.CharIcon;
import org.liquidengine.legui.icon.Icon;
import org.liquidengine.legui.listener.MouseClickEventListener;
import org.liquidengine.legui.style.Style;
View osu_music_exporter.py
import os
import re
import shutil
import logging
import argparse
import colorama
colorama.init()
logging.getLogger().setLevel(logging.INFO)
@DeflatedPickle
DeflatedPickle / css_switcher.html
Last active Feb 19, 2018
A NodeJS script that switches CSS depending on the current OS (for Electron).
View css_switcher.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Index</title>
<script rel="script" type="text/javascript" src="switcher.js"></script>
</head>
@DeflatedPickle
DeflatedPickle / list.py
Last active Oct 20, 2017
Enhanced List
View list.py
class list(list):
def __init__(self, *args):
for arg in args:
self.append(arg)
def replace(self, old, new):
self[self.index(old)] = new
def replace_all(self, old, new):
for number, item in enumerate(self):
@DeflatedPickle
DeflatedPickle / MinecraftEnergyTypes.md
Last active Apr 9, 2021
A simple table for Minecraft energy types and a matrix for conversion rates.
View MinecraftEnergyTypes.md

Minecraft Energy Types


Energy Name Abbreviation Original Mod Version
Anima AM Anima-Mundi 1.11.2
Blutricity BE (NO) Redpower 1.6.4
Charge RP (NO)/Fz? Factorization 1.7.10
Crystal Flux CF Actually Additions 1.12
@DeflatedPickle
DeflatedPickle / tkinter_random_number.py
Last active Jul 14, 2019
Endlessly generates a random number and shows it in a Tkinter window.
View tkinter_random_number.py
import tkinter as tk
import random
class Random(tk.Tk):
def __init__(self):
tk.Tk.__init__(self)
self.title("Random")
self.variable = tk.IntVar()