Skip to content

Instantly share code, notes, and snippets.

View misaalanshori's full-sized avatar
💭
wait, how do i use this thing?

M Isa Al Anshori misaalanshori

💭
wait, how do i use this thing?
View GitHub Profile
@jcmvbkbc
jcmvbkbc / gist:316e6da728021c8ff670a24e674a35e6
Last active November 21, 2023 18:39
esp32s3 linux rebuild scripts
Latest versions of these scripts are available in git repository https://github.com/jcmvbkbc/esp32-linux-build
@luciascarlet
luciascarlet / Balanced.ini
Last active September 2, 2024 18:44
MacType "Balanced" profile (WinUI-like)
# update v1.1 (see revisions for older version; this has a smoother appearance for both DirectWrite and GDI)
# Use with latest testing version of MacType only.
# Recommended to disable ClearType (not AA) system-wide by setting the FontSmoothingType DWORD to 1 in HKCU/Control Panel/Desktop. Do not do this step if you use Firefox, as it'll cause it to render very crunchy non-antialiased fonts for some text, but it improves Edge/Chrome and Chromium apps.
# Microsoft Edge and Chrome require bypassing the renderer code integrity policy so that vertical AA can be enabled by this profile. More details: https://github.com/snowie2000/mactype/wiki/Google-Chrome
# Additional suggested tweak: use Winaero Tweaker (https://winaero.com/winaero-tweaker/) to change every system font to "Segoe UI Variable Small", if you are using Windows 11. This will make fonts in Win32 UI's consistent with WinUI UI's, where Segoe UI Variable is used. (Windows doesn't use Segoe UI Variable for those by default because the legacy ClearType re
@umanghome
umanghome / publish.yml
Last active November 7, 2024 11:20
GitHub Action: Generate a build and push to another branch
# .github/workflows/publish.yml
name: Generate a build and push to another branch
on:
push:
branches:
- master # Remove this line if your primary branch is "main"
- main # Remove this line if your primary branch is "master"
jobs:
@wojteklu
wojteklu / clean_code.md
Last active November 15, 2024 07:19
Summary of 'Clean code' by Robert C. Martin

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