Skip to content

Instantly share code, notes, and snippets.

View mirjalal's full-sized avatar
👨‍💻
Composing

Mirjalal mirjalal

👨‍💻
Composing
View GitHub Profile
@mirjalal
mirjalal / code_piece.kt
Created October 30, 2023 07:42
bullet list for compose
val htmlString = stringResource(id = R.string.html_string)
val bullet = "\u2022"
val messages = HtmlCompat.fromHtml(htmlString, HtmlCompat.FROM_HTML_MODE_COMPACT).split('\n').toMutableList()
messages.removeIf { it.isEmpty() }
Text(
buildAnnotatedString {
withStyle(style = SpanStyle(fontWeight = FontWeight.Bold)) {
append(messages.removeFirst())
}
#!/usr/bin/env bash
#
# Install JDK for Linux
#
# This script determines the most recent early-access build number,
# downloads the JDK archive to the user home directory and extracts
# it there.
#
# Example usage
import cv2
import matplotlib.pyplot as plt
import numpy as np
from google.colab.patches import cv2_imshow
image_path = r"road.jpg"
image1 = cv2.imread(image_path)
plt.imshow(image1)
def grey(image):
e9acab5b5fbb560a72cfaecce8946896ff6aab9d
d975f751698a77b662f1254ddbeed3901e976f5a
33b6a2b64607f11b759f320ef9dff4ae5c47d97a
84831b9409646a918e30573bab4c9c91346d8abd
24333f8a63b6825ea9c5514f83c2829b004d1fee
859f317696f67ef3d7f30a50a5560e7834b43903
601085b94cd77f0b54ff86406957099ebe79c4d6