Skip to content

Instantly share code, notes, and snippets.

View Merkost's full-sized avatar
🎯
Focusing

Konstantin Merenkov Merkost

🎯
Focusing
View GitHub Profile
@sh1nj1
sh1nj1 / jks-to-crt-and-key.txt
Created May 13, 2015 09:46
jks to crt and key
keytool -list -keystore keystore.jks
keytool -importkeystore -srckeystore keystore.jks -destkeystore keystore.p12 -deststoretype PKCS12 -srcalias alias -deststorepass password
openssl pkcs12 -in keystore.p12 -nokeys -out cert.pem
openssl pkcs12 -in keystore.p12 -nodes -nocerts -out key.pem
openssl x509 -outform der -in cert.pem -out cert.crt
openssl rsa -in key.pem -out key.key
@Marlinski
Marlinski / BottomSheetScaffold.kt
Created October 23, 2022 21:48
port of BottomSheetScaffold for Material3
/*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@ardakazanci
ardakazanci / FlipCart.kt
Created January 5, 2024 18:11
FlipCard for Jetpack Compose
@Composable
fun FlipCard() {
var rotationXDegrees by remember { mutableStateOf(0f) }
var rotationYDegrees by remember { mutableStateOf(0f) }
val rotationX by animateFloatAsState(
targetValue = rotationXDegrees,
animationSpec = tween(durationMillis = 1000)
)
val rotationY by animateFloatAsState(
targetValue = rotationYDegrees,
@KlassenKonstantin
KlassenKonstantin / RubberBandSlider.kt
Created January 15, 2024 17:16
Rubber Band Slider Compose
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
WindowCompat.setDecorFitsSystemWindows(window, false)
super.onCreate(savedInstanceState)
setContent {
RubberBandSliderTheme {
Surface(modifier = Modifier.fillMaxSize(), color = MaterialTheme.colorScheme.background) {
Box(contentAlignment = Alignment.Center) {
RubberBandSlider(modifier = Modifier
.height(200.dp)
@ChathuraHettiarachchi
ChathuraHettiarachchi / MotionLayoutTry.kt
Last active May 7, 2024 14:36
This is a sample implementation of AirBnB search bar transition on Android usin Jetpack Compose MotionLayout, MotionScene with DSL. You need to replace the images on `destinations` to work this. FInd the video link https://twitter.com/i/status/1778640663086829622
package com.chootadev.composetryout
import androidx.annotation.DrawableRes
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.keyframes
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable