Skip to content

Instantly share code, notes, and snippets.

-> The Band Red

Colten Krauter coltenkrauter

-> The Band Red
View GitHub Profile
coltenkrauter / html-input-remove-chrome-autofill-background.css
Last active Nov 29, 2019
Remove Chrome's autofill background color on HTML inputs. This unique solution makes the background color to transparent rather then a solid color.
View html-input-remove-chrome-autofill-background.css
// Remove chrome autofill color from inputs
input:-webkit-autofill:active {
transition: background-color 5000000s ease-in-out 0s;
# Credit:
coltenkrauter /
Last active Nov 15, 2019
A simple helper function for formatting/indenting a Python object as JSON.
import json
# Example usage: print(pretty_json(some_dict))
def pretty_json(object):
return json.dumps(object, indent=4)
except Exception as exception:
print("---> Unable to parse object as JSON")
return str(object)
coltenkrauter /
Created Oct 24, 2019
Python code for normalizing audio files.
# Credit:
# pip install pydub
from pydub import AudioSegment
def match_target_amplitude(sound, target_dBFS):
change_in_dBFS = target_dBFS - sound.dBFS
return sound.apply_gain(change_in_dBFS)
sound = AudioSegment.from_file("yourAudio.m4a", "m4a")