Skip to content

Instantly share code, notes, and snippets.

View MohamedHarmoush's full-sized avatar

MohamedHarmoush

View GitHub Profile
@MohamedHarmoush
MohamedHarmoush / Uninstall Android Studio.txt
Created January 4, 2024 20:26
How to Uninstall Android Studio Completely on MacBook M1 using terminal
Terminal commands to uninstall Android Studio on Mac
Deletes the Android Studio application
rm -Rf /Applications/Android\ Studio.app
Deletes the Android Studio's plist files
rm -Rf ~/Library/Preferences/com.google.android.*
Deletes the Android Emulator's plist file
rm -Rf ~/Library/Preferences/com.android.*
@MohamedHarmoush
MohamedHarmoush / Shadow.kt
Last active October 23, 2023 14:05
Compose Shadow modifier
/**
* Reference => https://issuetracker.google.com/issues/160665122#comment105
* Applies a shadow to the current box.
*
* @param color The color of the shadow.
*
* @param blurRadius The larger this value, the bigger the blur, so the shadow
* becomes bigger and lighter.
* If set to `0`, the shadow's edge is sharp.
*
@MohamedHarmoush
MohamedHarmoush / Shadow.kt
Created September 13, 2023 16:33
Shadow modifier
@Immutable
data class Shadow(
@Stable val offsetX: Dp = 0.dp,
@Stable val offsetY: Dp = 0.dp,
@Stable val radius: Dp = 0.dp,
@Stable val color: Color = Color.Black,
@Stable val spread: Float = 0f,
@Stable val alpha: Float = 1f,
)