Skip to content

Instantly share code, notes, and snippets.

View Micoder-dev's full-sized avatar
♦️
Eat😋| Code👨‍💻| Sleep 😴| Repeat ♾️ | Achieve 🚀

Mugunthan Micoder-dev

♦️
Eat😋| Code👨‍💻| Sleep 😴| Repeat ♾️ | Achieve 🚀
  • Titan Apps
  • TamilNadu, India
  • 17:25 (UTC -12:00)
  • Instagram mi_coder
View GitHub Profile
@stevdza-san
stevdza-san / AnimatedBorderCard.kt
Last active April 3, 2024 14:01
Card with Animated Border built with Jetpack Compose.
@Composable
fun AnimatedBorderCard(
modifier: Modifier = Modifier,
shape: Shape = RoundedCornerShape(size = 0.dp),
borderWidth: Dp = 2.dp,
gradient: Brush = Brush.sweepGradient(listOf(Color.Gray, Color.White)),
animationDuration: Int = 10000,
onCardClick: () -> Unit = {},
content: @Composable () -> Unit
) {
@oianmol
oianmol / platform.android.kt
Created May 19, 2023 10:01
Jetpack Compose Side Effect to update Android or iOS status-bar and navigation-bar color
@Composable
actual fun PlatformColors(statusBarColor: Color, navBarColor: Color){
val sysUiController = rememberSystemUiController()
SideEffect {
sysUiController.setSystemBarsColor(color = topColor)
sysUiController.setNavigationBarColor(color = bottomColor)
}
}
@jmadaminov
jmadaminov / BackgroundShader
Created April 20, 2023 10:43
Liquid like AGSL shader effect
import android.graphics.Bitmap
import android.graphics.BitmapShader
import android.graphics.RuntimeShader
import android.graphics.Shader
import android.os.Build
import androidx.compose.animation.core.withInfiniteAnimationFrameMillis
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.getValue
import androidx.compose.runtime.produceState
import androidx.compose.ui.Modifier
@stevdza-san
stevdza-san / MainScreen.kt
Created September 16, 2022 09:18
Disappearing and Animated Top Bar - Jetpack Compose
import android.annotation.SuppressLint
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.rememberLazyListState
name: Build and Test
on:
workflow_dispatch:
jobs:
local_test_job:
name: Running Local Tests
runs-on: ubuntu-latest
@pavi2410
pavi2410 / compose.py
Last active December 29, 2023 18:08
Implementation of Jetpack Compose like reactive tree structure in Python
from contextlib import contextmanager
# Helper methods
def pprint_dict(d):
return '[' + ', '.join([f'{k} = {d[k]}' for k in d]) + ']'
def composable_tree():
@madushans
madushans / compose-glide-blurred-load.kt
Last active January 9, 2024 20:43
Load images with blurred thumbnail load effect using Jetpack Compose, Glide and StateFlow
// Adapted from https://gist.github.com/lelandrichardson/de674fe6788d922fc84362fdae530464
@Composable
fun ExampleUsage(){
GlideImage(src = "source-path",
blurThumbSrc = "fast-to-load-small-thumbnail-path-for-blur effect"
){imageBitmap ->
if (imageBitmap != null) {
Image(bitmap = imageBitmap,
// modifier = ...
@eis6aer
eis6aer / SampleCastingPlayerActivity.kt
Created December 12, 2020 05:46 — forked from stefan-zh/SampleCastingPlayerActivity.kt
Create Cast-enabled Activity with ExoPlayer
package com.exoplayer.cast
import android.net.Uri
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import com.google.android.exoplayer2.Player
import com.google.android.exoplayer2.SimpleExoPlayer
import com.google.android.exoplayer2.ext.cast.CastPlayer
@smartherd
smartherd / MainActivity.kt
Created November 27, 2020 08:03
Material Toggle Button (Material Design Component: MDC)
package com.sriyank.mdccomponents
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
@wjdwndud0114
wjdwndud0114 / idastuff.txt
Last active August 5, 2024 17:14
so debugging on ida pro
Nexus 5 4.4.4
1. setup:
a. need to downgrade to 4.4.4, root
b. luckypactcher, GG, xposed
c. put libhook.so and android_server and libsubstrate.so in /data/local/tmp/ and install aadbg
d. patch with luckypatcher the middle 2
2. adb shell su -> android_server
3. adb forward tcp:23946 tcp: 23946
4. adb forward tcp:8700 jdwp:PID_OF_GAME
jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8700