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 / unsupervisedLearning.kt
Created January 21, 2026 05:34
unsupervisedLearning.kt
package io.jadu.nivi.ai
import org.apache.commons.csv.CSVFormat
import smile.anomaly.IsolationForest
import smile.base.cart.SplitRule
import smile.data.formula.Formula
import smile.io.Read
import smile.nlp.tokenizer.SimpleTokenizer
fun main() {
package io.jadu.nivi.ai
import org.apache.commons.csv.CSVFormat
import smile.classification.RandomForest
import smile.data.DataFrame
import smile.data.formula.Formula
import smile.data.measure.NominalScale
import smile.io.Read
import smile.nlp.normalize
@Rohit-554
Rohit-554 / 3dglobe.dart
Created January 11, 2026 14:40
3dgloble.dart
import 'package:flutter/material.dart';
import 'package:flutter_earth_globe/flutter_earth_globe.dart';
import 'package:flutter_earth_globe/flutter_earth_globe_controller.dart';
import 'package:flutter_earth_globe/globe_coordinates.dart';
import 'package:flutter_earth_globe/point.dart';
import 'package:flutter_earth_globe/point_connection.dart';
void main() {
runApp(const MyApp());
}
package io.jadu
import java.io.File
data class User(
val name: String?,
val email: String?,
val role: String,
val age: Int
)
@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