This file contains hidden or 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
| 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()) | |
| } |
This file contains hidden or 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
| #!/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 |
This file contains hidden or 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
| 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): |
This file contains hidden or 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
| e9acab5b5fbb560a72cfaecce8946896ff6aab9d |
This file contains hidden or 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
| d975f751698a77b662f1254ddbeed3901e976f5a |
This file contains hidden or 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
| 33b6a2b64607f11b759f320ef9dff4ae5c47d97a |
This file contains hidden or 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
| 84831b9409646a918e30573bab4c9c91346d8abd |
This file contains hidden or 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
| 24333f8a63b6825ea9c5514f83c2829b004d1fee |
This file contains hidden or 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
| 859f317696f67ef3d7f30a50a5560e7834b43903 |
This file contains hidden or 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
| 601085b94cd77f0b54ff86406957099ebe79c4d6 |
NewerOlder