Skip to content

Instantly share code, notes, and snippets.

View NurseyitTursunkulov's full-sized avatar

Nurseiit Tursunkulov NurseyitTursunkulov

  • Bishkek Kyrgyzstan (Central Asia)
View GitHub Profile
package com.example.testfordatabase.application.dto.mapper
import com.example.testfordatabase.domain.aggregate.article.Article
import com.example.testfordatabase.domain.aggregate.comment.Comment
import com.example.testfordatabase.domain.aggregate.user.MyUser
import com.example.testfordatabase.swagger.api.*
import com.google.common.collect.ImmutableSet
import java.time.ZoneOffset
import java.util.stream.Collectors
package de.check24.techtalk.recyclerview.bigtosmall
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import de.check24.techtalk.common.BaseActivity
import de.check24.techtalk.databinding.ActivityRecyclerviewBigToSmallBinding
class MainViewModel(
val lonLatOfBishkek: LonLat,
private val app: Application,
val mainUseCase: MainUseCase,
private val loginUseCase: LoginUseCase,
presenterState: MainPresenterState,
globalNavigationState: GlobalNavigationState
) : AndroidViewModel(app), SuggestSession.SuggestListener,
MainPresenterState by presenterState,
class MainMapsFragment : Fragment(), CameraListener {
var lonLatOfBishkek: LonLat = LonLat(42.831698, 74.621554)
private val MAPKIT_API_KEY = "5e4b8c11-3756-4222-ae2d-062f9e631c4f"
private var mapObjects: MapObjectCollection? = null
private val DRAGGABLE_PLACEMARK_CENTER = Point(42.831698, 74.621554)
private lateinit var searchManager: SearchManager
val viewModel: MainViewModel by sharedViewModel()
class LocationDisplayFragment : Fragment(R.layout.fragment_location_display) {
val viewModel: MainViewModel by sharedViewModel()
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
tv_display_pickup.setOnClickListener {
with(viewModel) {
currentIsPickupLocation = true
openBottomSheetFragment()
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".android.ui.main.MainActivity"
tools:showIn="@layout/activity_main">
var count = 0
fun main(args: Array<String>) {
getKardsFromUser()
val kards = getKardsFromUser()
howManyTimesVasyaLookedKards(kards)
println(count)
package com.company;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
public class Main {
static int counter = 0;