This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.redarmour.pantheon.maxim | |
import arrow.core.Either | |
import arrow.core.continuations.either | |
import kotlinx.coroutines.coroutineScope | |
import kotlinx.coroutines.delay | |
/** | |
* На самом деле предлагаемый подход - суть то же, что не suspend функции, которые возврашают Mono<Result<T>> | |
* За тем лишь исключением, что котлинячий Result не "стакается" так же, как Either.Left |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Shift>Alt_L']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['<Alt>Shift_L']" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This hacky class is needed because ViewPager2 still has some troubles in | |
* calculating HEIGHT for its tabs | |
* see: https://issuetracker.google.com/issues/133135685 | |
*/ | |
abstract class ViewPager2Adapter<T>(tabCount: Int) : | |
ListAdapter<T, RecyclerView.ViewHolder>(object : DiffUtil.ItemCallback<T>() { | |
override fun areItemsTheSame(oldItem: T, newItem: T): Boolean { | |
// We suppose that we show the same objects for every tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rcd27.com.vk.chatclientApp; | |
import javafx.application.Application; | |
import javafx.fxml.FXMLLoader; | |
import javafx.scene.Scene; | |
import javafx.scene.layout.AnchorPane; | |
import javafx.scene.layout.BorderPane; | |
import javafx.stage.Stage; | |
import java.io.IOException; |