Skip to content

Instantly share code, notes, and snippets.

View bagustris's full-sized avatar
💭
I may be slow to respond.

Bagus Tris Atmaja bagustris

💭
I may be slow to respond.
View GitHub Profile
@bagustris
bagustris / stereo2mono.py
Created November 25, 2022 01:05
Convert given directory containing stereo files to mono files
#!/usr/bin/env python3
import os
import argparse
import glob
from pydub import AudioSegment
def stereo2mono(files):
"""Convert all files from stereo to mono.
Note: this would effectively also create a copy of files that were already in a mono format
Parameters
import numpy as np
import pandas as pd
import torch
from sklearn.metrics import (
accuracy_score,
balanced_accuracy_score,
f1_score,
roc_auc_score,
)
@bagustris
bagustris / conventional-commits-cheatsheet.md
Created November 26, 2024 09:48 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default