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 / 3dSphereProjectionAnimation.kt
Created November 23, 2025 11:45
An interactive 3D rotating sphere where labels and colorful dots are positioned on the sphere's surface, drag and see the Jadu :)
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.gestures.detectDragGestures
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
@Rohit-554
Rohit-554 / DateCarousel.kt
Last active December 6, 2025 00:01
This composable displays a horizontally scrollable week-style date selector with a 3D rotating dial effect. As the user scrolls, each date card scales, rotates, and fades based on its distance from the center, making the middle item appear highlighted. Tapping a date selects it and automatically scrolls The UI uses simple Material text styles, s…
// add this to your commonMain.dependencies
// implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.7.1")
@OptIn(ExperimentalTime::class)
@Composable
fun CarouselCalendar() {
//// Clock.System.now() -> Output: 2025-11-15T14:30:45.123456789Z
//// (Year-Month-Day T Hour:Minute:Second.Nanoseconds Z for UTC)
@Rohit-554
Rohit-554 / FirstUI.kt
Created November 1, 2025 09:18
Learn first jetpack compose ui
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
@Rohit-554
Rohit-554 / ResumeTemplate.tex
Created October 14, 2025 20:41
ResumeTemplateLatex
%-------------------------
% Generic Resume in LaTeX
% Author : Your Name
%------------------------
\documentclass[letterpaper,11pt]{article}
\usepackage{latexsym}
\usepackage[empty]{fullpage}
\usepackage{titlesec}
HTTP
url
Method : Get
Headers
Content-Type application/json
Authorization Bearer <token>
@Rohit-554
Rohit-554 / KawaiiCloudWithRainbow.kt
Created March 21, 2025 08:42
A simple canvas code for implementing a cute floating cloud and a rainbow over it
@Composable
fun KawaiiCloudWithRainbow() {
// Animation for cloud bounce
val infiniteTransition = rememberInfiniteTransition()
val cloudBounce by infiniteTransition.animateFloat(
initialValue = 0f,
targetValue = 20f,
animationSpec = infiniteRepeatable(
tween(1000, easing = FastOutSlowInEasing),
repeatMode = RepeatMode.Reverse
@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)
);