Skip to content

Instantly share code, notes, and snippets.

View supejuice's full-sized avatar
🏠
Working from home

Nithin supejuice

🏠
Working from home
  • 5Paisa
  • Bengaluru
  • 19:36 (UTC +05:30)
View GitHub Profile
@bentrengrove
bentrengrove / MatrixText.kt
Last active November 28, 2022 09:16
MatrixText.kt - A Composeable that displays text Matrix style down the screen
private const val MAX_SPEED = 25
private const val MIN_SPEED = 7
private const val MAX_FONT_SIZE = 64f
private const val MIN_FONT_SIZE = 24f
private val characters = listOf("ジ", "ェ", "ッ", "ト", "パ", "ッ", "ク", "構", "成")
private val colors = listOf(0xffcefbe4, 0xff81ec72, 0xff5cd646, 0xff54d13c, 0xff4ccc32, 0xff43c728)
@Composable
fun MatrixText(
stripCount: Int = 25,
lettersPerStrip: Int = 20,
@destan
destan / ParseRSAKeys.java
Last active March 29, 2024 10:43
Parse RSA public and private key pair from string in Java
import java.io.IOException;
import java.net.URISyntaxException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.PKCS8EncodedKeySpec;