Skip to content

Instantly share code, notes, and snippets.

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

Jadu Rohit-554

🎯
Focusing
View GitHub Profile
@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>
private fun createTable(
billDetail: BillSetting,
party: PartyModelRequest,
termsAndConditionAndNotes: TermsAndConditionAndNotes,
billSignature: BillSignatureResponse,
billSlogan: SloganResponse,
selectedRadioButton: String
) {
//TODO: if a condition is true by default do not remove else section code because it will
//TODO: be used in future
import 'dart:ffi';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:laser_slides_flutter/colors/Colors.dart';
import 'package:laser_slides_flutter/model/local/NetworkEntity.dart';
import 'package:laser_slides_flutter/model/local/NetworkSettings.dart';
import 'package:laser_slides_flutter/ui/bloc/NetworkBloc.dart';
import 'package:laser_slides_flutter/ui/bloc/NetworkConfig_event.dart';
import 'package:laser_slides_flutter/ui/bloc/NetworkConfig_state.dart';
...
@Singleton
@Provides
fun provideXmlExampleApiService(): XmlExampleApiService {
return Retrofit.Builder()
.baseUrl(ApiConstants.Base_Url)
.client(OkHttpClientHelper().getOkHttpClient())
//note the converter factory
.addConverterFactory(SimpleXmlConverterFactory.create())
.build()
@Rohit-554
Rohit-554 / XmlExampleApiService.kt
Created September 10, 2023 10:06
Retrofit Interface
interface XmlExampleApiService {
@Headers("Accept: application/xml")
@GET("your-end-point")
suspend fun getCountryLanguage(): Response<languageDto>
// this language dto is already defined refer in the beginning of the article
}