Skip to content

Instantly share code, notes, and snippets.

View mayureshwaykole's full-sized avatar

Mayuresh Waykole mayureshwaykole

View GitHub Profile
@rgabs
rgabs / .zshrc
Created January 24, 2017 09:27
Shortcut to push onto the current branch. So I've created an alias in .zshrc file `gpoc = git push origin $(git rev-parse --abbrev-ref HEAD)`. Now `gpoc` will push into the current branch. No need to write git push origin <branchname>
gpoc = "git push origin $(git rev-parse --abbrev-ref HEAD)"
@wojteklu
wojteklu / clean_code.md
Last active November 3, 2025 03: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

@vasanthk
vasanthk / System Design.md
Last active November 3, 2025 06:47
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@electronut
electronut / ldr.py
Created May 4, 2014 06:14
Display analog data from Arduino using Python (matplotlib animation)
"""
ldr.py
Display analog data from Arduino using Python (matplotlib)
Author: Mahesh Venkitachalam
Website: electronut.in
"""
import sys, serial, argparse