Skip to content

Instantly share code, notes, and snippets.

View chaoslogick's full-sized avatar
👻
localghost

mpg chaoslogick

👻
localghost
View GitHub Profile
@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
==================
@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 / 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 / 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 / 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 / bhn.css
Created May 1, 2022 02:20
CSS: Better Hacker News
/* Simple CSS for a better hacker news
* Removes comments and voting
*/
#hnmain {
min-width: 640px;
width: 90vw;
max-width: 100%;
}
.rank { margin: 0 12px; }
.votearrow { display: none; }
@chaoslogick
chaoslogick / ff4-script.lua
Created February 18, 2022 02:07
LUA: Final Fantasy 4 Snes9X Script
-- --------------------------- --
-- Final Fantasy IV LUA script --
-- --
-- By: Pasky13 --
-- --------------------------- --
-- Globals
char_atbm = {0, 0, 0, 0, 0}
enemy_atbm = {0, 0, 0, 0, 0, 0, 0, 0}
@chaoslogick
chaoslogick / eurorack-for-sale.txt
Last active February 18, 2022 02:12
Eurorack For Sale
All modules are in good to excellent condition.
Most of these have original boxes.
-----------------------------------------------
ornament and crime (uO_C) --- $180
mutable instruments peaks (oscillosaurus plate + original) --- $130
mutable instruments streams (oscillosaurus plate + original) --- $140
acid rain chainsaw --- $225
make noise morphagene --- $480
hexinverter mutant brain (silver) --- $200
@chaoslogick
chaoslogick / cool_convo.py
Created July 2, 2021 17:26 — forked from dehaenw/cool_convo.py
PY: Cool Convolution
from scipy.io import wavfile
import scipy.io
from scipy.fft import fft, ifft
import numpy as np
"""
chord.wav should be a short sound, equivalent to carrier in vocoder
impulse.wav should be a quite sparse transient heavy sound, equivalent to modulator in vocoder
play with tsmear and asmear to tweak between vocoder and convolution like sound
"""
Tsmear = 1000
@chaoslogick
chaoslogick / etc_default_grub
Created June 28, 2020 02:43
GRUB: Grub init tunes
# Mario Mushroom Power-Up
GRUB_INIT_TUNE="1750 523 1 392 1 523 1 659 1 784 1 1047 1 784 1 415 1 523 1 622 1 831 1 622 1 831 1 1046 1 1244 1 1661 1 1244 1 466 1 587 1 698 1 932 1 1195 1 1397 1 1865 1 1397 1"
# Legend of Zelda Overworld
#GRUB_INIT_TUNE="12000 440 100 0 1 329 150 440 50 0 1 440 25 493 25 523 25 587 25 659 200"
# Close Encounters/5 Tone
#GRUB_INIT_TUNE="480 900 2 1000 2 800 2 400 2 600 3"