When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| #!/bin/bash | |
| # Renames subtitles files according to tv shows names found in a directory | |
| # Acceped syntaxes for season/episode are: 304, s3e04, s03e04, 3x04 (case insensitive) | |
| # | |
| # Usage: | |
| # Put this gist somewhere in your $PATH, like /usr/local/bin/subtitles-renamer | |
| # Chmod +x it | |
| # cd ~/YourHolidaysTvShowsWithSubtitles | |
| # subtitles-renamer |
| //!DESC acme-0.5x | |
| //!HOOK LUMA | |
| //!BIND HOOKED | |
| //!WIDTH HOOKED.w 2 / | |
| //!HEIGHT HOOKED.h 2 / | |
| //!WHEN HOOKED.w 2 % ! HOOKED.h 2 % ! * | |
| //!OFFSET 0.25 0.25 | |
| vec4 hook() { | |
| return HOOKED_texOff(vec2(-0.25,-0.25)); | |
| } |
| /** NOTES | |
| You'd like to change the font families if you aren't Korean and/or don't use Momotalk theme (https://github.com/MiyakuKage/discord-momotalk) | |
| **/ | |
| /** IMPORTS **/ | |
| /* Revert Old Icons */ | |
| @import url(https://davart154.github.io/Themes/Icon%20Revert%202023/2023%20Icon%20Revert.css); | |
| /* Import Fonts */ | |
| @import url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-jp.min.css); |
Hanging out in subtitling and video re-editing communities, I see my fair share of novice video editors and video encoders, and see plenty of them make the classic beginner mistakes when it comes to working with videos. A man can only read "Use Handbrake to convert your mkv to an mp4 :)" so many times before losing it, so I am writing this article to channel the resulting psychic damage into something productive.
If you are new to working with videos (or, let's face it, even if you aren't), please read through this guide to avoid making mistakes that can cost you lots of time, computing power, storage space, or video quality.