Skip to content

Instantly share code, notes, and snippets.

View Rohit-554's full-sized avatar
🎯
Focusing

Jadu Rohit-554

🎯
Focusing
View GitHub Profile
@Rohit-554
Rohit-554 / ShapeMorphing.kt
Created February 24, 2025 18:28
Animated shape morphing between list of different shapes in Jetpack compose
package io.jadu.kanvasexp
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberInfiniteTransition
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
// Get epoch time
const val formatPattern = "yyyy-MM-dd'T'HH:mm:ss[.SSS]"
@OptIn(FormatStringsInDatetimeFormats::class)
private val EpochDateTimeFormatter = LocalDateTime.Format {
byUnicodePattern(formatPattern)
}
fun getFormattedDate(timeStamp: Long): String {
return EpochDateTimeFormatter.format(
# Ringlr
Ringlr is a cross-platform application designed to handle and integrate phone calls and audio configurations. It leverages platform-specific APIs such as Android's Telecom framework and iOS's CallKit to provide a seamless calling experience.
![ringlr_](https://github.com/user-attachments/assets/65f924e5-8f70-4bd1-87a5-a99eac86eae7)
## Contents
- [Features](#features)
- [Permissions](#permissions)
- [CallManager API Reference](#callmanager-api-reference)
private const val TUNNEL_SHADER_SRC = """
uniform float2 iResolution;
uniform float iTime;
uniform shader composable;
float2x2 rotate2D(float r) {
return float2x2(
cos(r), sin(r),
-sin(r), cos(r)
);
@Composable
fun QuadraticBezierCurve(
modifier: Modifier = Modifier,
startPoint: Offset = Offset(50f, 200f),
controlPoint: Offset = Offset(200f, 50f),
endPoint: Offset = Offset(350f, 200f)
) {
var currentStartPoint by remember { mutableStateOf(startPoint) }
var currentControlPoint by remember { mutableStateOf(controlPoint) }
var currentEndPoint by remember { mutableStateOf(endPoint) }
@Composable
fun StackedUI(){
val cardColors = listOf(
R.drawable.user_1,
R.drawable.dog_png,
R.drawable.user_2,
R.drawable.user_3,
R.drawable.user_4,
)
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.app.Service
import android.content.Intent
import android.content.pm.PackageManager
import android.location.Location
import android.media.MediaPlayer
import android.os.Build
@Rohit-554
Rohit-554 / GSoC_2024_Final_Report.md
Last active August 17, 2024 17:35 — forked from Prayag-X/GSoC_2023_Final_Report.md
GSoC 2023 Smart City Dashboard Final Report

GSoC 2023 Smart City Dashboard - Final Report

My name: Prayag Biswas

Mentor: Merul Dhiman

Organization: Liquid Galaxy

Organization Admin: Andreu Ibáñez

package stock.register.godown.stock.record.shop.stock.ledger.ui.setting.business_setting.bill_settings.billSettingOptions.bill_settings_ui.themeAndColor
import android.util.Log
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
//pin
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>PointKML</name>
<Placemark>
<name>Point</name>
<Style>
<IconStyle>
<scale>1</scale>