Skip to content

Instantly share code, notes, and snippets.

View elbaulp's full-sized avatar
🏡
Functional Programming / Machine Learning / DataScience

Alejandro Alcalde elbaulp

🏡
Functional Programming / Machine Learning / DataScience
View GitHub Profile
@matt-fff
matt-fff / pre-commit
Created December 13, 2018 22:22
Apply Black formatting before every commit
git diff --cached --name-status | grep -v '^D' | grep '.py' | sed 's/[A-Z][ \t]*//' | xargs black 2>&1 | grep '^reformatted' | sed 's/reformatted[ \t]//' | xargs git add
@neuro-sys
neuro-sys / dwmconfig.h
Last active September 27, 2023 18:20
dwm volume control
/**
* config.h
* ALT + F11 | F12
*/
static const char *upvol[] = { "amixer", "set", "Master", "3+", NULL };
static const char *downvol[] = { "amixer", "set", "Master", "3-", NULL };
static const char *mutevol[] = { "amixer", "set", "Master", "toggle", NULL };
static Key keys[] = {