Skip to content

Instantly share code, notes, and snippets.

View chaoslogick's full-sized avatar
👻
localghost

mpg chaoslogick

👻
localghost
View GitHub Profile
@chaoslogick
chaoslogick / dnd-tools.py
Created May 23, 2022 14:54
PYTHON: Tools for D&D 5e
#!/usr/bin/env python
from __future__ import print_function, division
###########
# Imports #
###########
import sys
import math
@chaoslogick
chaoslogick / Kai32.bas
Created June 16, 2022 21:32 — forked from derv82/Kai32.bas
VB6 module for "interacting" with America Online (AOL). Developed between 1998-2000
Attribute VB_Name = "Kai32"
'-=====================================================-
' -= +------------------------------------------------+ =-
' -= | |\ =-
' -= | |¯¯|\ |¯¯|\ |¯¯|\ |¯¯¯¯¯¯|\ |¯¯¯¯¯¯|\ |\\ =-
' -= | | |\/ /\| |__|\||__|| |\||___ |\| |\\| =-
' -= | | |/ /\/ |¯¯¯¯¯|\ \\\\| \\|¯ |\| /¯¯___/\| |\\| =-
' -= | | /\/ | |\||¯¯|\ |¯¯|| |\|| ¯¯¯|\ |\\| =-
' -= | | \/ | | |\|| |\||______|\||______|\| |\\| =-
' -= | | |\ \ | |\|| |\| \\\\\\\\| \\\\\\\\| |\\| =-
@chaoslogick
chaoslogick / rnd-hex.js
Created August 13, 2022 15:37
JS: Random hex value
let rndHex = Math.floor(Math.random() * 0xffffff).toString(16).padEnd(6, '0');
@chaoslogick
chaoslogick / chunker.rb
Created December 25, 2022 05:14
RB: Sample chunker
require 'ruby-audio'
# Open the original audio file
song = RubyAudio::Sound.open("/Users/username/Desktop/filename.wav")
chunk_length_ms = 1000 # chunk length in milliseconds
chunk_length_samples = chunk_length_ms * song.info.samplerate / 1000 # convert chunk length to number of samples
# Make chunks of one second
chunks = []
@chaoslogick
chaoslogick / ie67891011-css-hacks.txt
Created May 15, 2023 21:53 — forked from vidaaudrey/ie67891011-css-hacks.txt
IE CSS hacks - IE6, 7, 8, 9, 10, 11
IE6 Only
==================
_selector {...}
IE6 & IE7
==================
*html or { _property: }
IE7 Only
==================