Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

soshial

🏠
Working from home
  • Berlin
View GitHub Profile
@waiting-for-dev
waiting-for-dev / merge2ass.sh
Last active Oct 16, 2018
Script to run mplayer with two subtitles tracks at the same time. Usage: mplayer2 video sub1 sub2. merge2ass.sh (http://www.abclinuxu.cz/blog/Joseho_blog/2007/7/30/188299) script must be in the path.
View merge2ass.sh
#!/bin/bash
# merge2ass.sh - script for merging two text-subtitles into an ass subtitle file
# version 0.9b, 02-feb-2013
# comments/criticism/praise to jose1711-gmail-com
# dependencies: mplayer (if your subtitle files need to be converted to srt), gnu utils
# thanks to:
# - d.watzke for comments
# - belisarivs for testing
@wojteklu
wojteklu / clean_code.md
Last active Oct 26, 2021
Summary of 'Clean code' by Robert C. Martin
View clean_code.md

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@barbeau
barbeau / Dual-frequency GNSS on Android.csv
Last active Jul 11, 2019
Dual-frequency GNSS on Android
View Dual-frequency GNSS on Android.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Deprecated in favor of direct view of Google Sheet (https://docs.google.com/spreadsheets/d/1z6Yt9c4cyev1PB6VWEkbZtJGfoxAQ5UJnHyP24sFwlk/edit#gid=0) in Medium article (https://medium.com/@sjbarbeau/tl-dr-dual-frequency-gnss-on-android-table-of-devices-9be4bbb83a7b) using Sheetsu.