Skip to content

Instantly share code, notes, and snippets.

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

Mirjalal mirjalal

👨‍💻
Composing
View GitHub Profile
33b6a2b64607f11b759f320ef9dff4ae5c47d97a
d975f751698a77b662f1254ddbeed3901e976f5a
e9acab5b5fbb560a72cfaecce8946896ff6aab9d
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):
#!/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
@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())
}