Skip to content

Instantly share code, notes, and snippets.

View leovoel's full-sized avatar

Leonardo Vieira leovoel

View GitHub Profile
@leovoel
leovoel / jummbox.md
Last active December 16, 2021 21:00

Moved to .

# MDK2 (WAVC)
# script for quickbms (http://aluigi.altervista.org/quickbms.htm)
# the output file of this script (.acm) should work with ffmpeg or vgmstream.
# if you haven't extracted the zip files containing these,
# aluigi's zip.bms should work (http://aluigi.altervista.org/bms/zip.bms)
idstring "WAVCV1.0"
get UNCOMPRESSED_SIZE long
# USAGE
# =====
# save this code into a file called rcru.bms.
#
# then, for saving sounds, execute QuickBMS like so:
#
# quickbms rcru.bms audio.rcru audio
#
# this will dump ogg files in the "audio" folder.
#
.bot-tag {
background: #7289da;
}
.bot-tag.bot-tag-invert {
background: #fff;
}
.spinner-wandering-cubes .spinner-item {
background-color: #7289da;
const fs = require('fs');
const postcss = require('postcss');
const selectorParser = require('postcss-selector-parser');
const combineDuplicates = require('postcss-combine-duplicated-selectors');
const discardDuplicates = require('postcss-discard-duplicates');
const perfectionist = require('perfectionist');
const search = postcss.plugin('postcss-css-search', (options) => {
if (!options.what) {
throw new Error("Please set options.what to the class you're looking for");
from math import sqrt, cos, sin, pi, radians
from glc import Gif
from glc.color import Color
from glc.utils import draw_image
from cairo import ImageSurface
def intersection(x, y, rx, ry):
px, py = 0, 0
if x == 0:
py = -ry if y < 0 else ry
import io
import os
import sys
import json
import struct
import shutil
def align_int(i, alignment):
return i + (alignment - (i % alignment)) % alignment
@leovoel
leovoel / basic_bot.py
Last active January 25, 2024 04:19
discord.py's basic_bot.py converted to use "cogs".
from discord.ext import commands
description = '''An example bot to showcase the discord.ext.commands extension
module.
There are a number of utility commands being showcased here.'''
# this specifies what extensions to load when the bot starts up
startup_extensions = ["members", "rng"]