This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.idea/ | |
.vscode/ | |
__pycache__/ | |
*.lock | |
**/.nfs* | |
/venv/ | |
**/.fuse_hidden* | |
.ipynb_checkpoints/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def human_number(num): | |
""" | |
return human-readable version of number. E.g: 30.4k | |
""" | |
# https://gist.github.com/pixelzery/eace0b100a381e7cf724612b7309a9d2 | |
if num == 0: | |
return "0" | |
elif num < 0: | |
return "-" + human_number(-num) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable */ | |
// YouTube Music Uploader Hall of Shame | |
// Trying to grok the range of malformed input in song title strings | |
[ | |
'BPC335 - Maxime Iko "Concilium"', // wrong order (catalog number before everything else), extra info (catalog number), bad separator `"`, bad extra separator `-` | |
'"Pollution" by Tom Lehrer', // wrong order (`Artist - Title` reversed), quotes, bad separator `by` | |
'DIS IZ WHY I\'M HOT (zef remix) - Die Antwoord', // `Artist - Title` reversed, bad case | |
'Man with no name - Teleport (Original mix). HQ', // bad case, noisy `(Original mix)`, extra info `HQ`, bad extra separator `.` | |
'Varg — Under Beige Nylon', // uneven spaces, bad separator `—` | |
'varg - under beige nylon - 46bpm', // bad case, bad extra separator `-`, extra info `46bpm` |