Skip to content

Instantly share code, notes, and snippets.

View atishpatel's full-sized avatar
🙏
Enjoy yourself

Atish Patel atishpatel

🙏
Enjoy yourself
View GitHub Profile

MacOS Touchpad Behavior Analysis

Single Touch

On a MacBook Air with 104mm x 76mm touchpad, macOS appears to put its equivalent of upper_thumb_line 20mm from the bottom, and lower_thumb_line 10mm from the bottom. On Magic Trackpad, 130mm x 108mm active area, these seem to be the same (20mm/10mm from bottom).

In AREA, i.e. above upper_thumb_line

  • Finger: Live touch, no speed threshold, free movement
  • Thumb: Live touch, no speed threshold, free movement

Below upper_thumb_line but above lower_thumb_line

@vasanthk
vasanthk / System Design.md
Last active May 6, 2024 20:21
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?
@ebidel
ebidel / app.html
Last active May 1, 2021 15:42
Fast Polymer app loading - optimized for first render, progressively enhanced lazy loading
<!DOCTYPE html>
<html>
<head>
<style>
body.loading #splash {
opacity: 1;
}
#splash {
position: absolute;
top: 0;
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 7, 2024 07:31
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k