This file contains 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
@Composable | |
fun GridCellTable( | |
ingredientState: IngredientState | |
) { | |
val items = mutableListOf<IngredientState>() | |
Column( | |
modifier = Modifier | |
.fillMaxSize() | |
.padding(16.dp) | |
) { |
This file contains 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
@Composable | |
fun PhotoBottomSheetContent( | |
bitmaps: List<Bitmap>, | |
context: Context, | |
geminiAIViewModel: GeminiAIViewModel1 = hiltViewModel(), | |
modifier: Modifier, | |
) { | |
val uiState by geminiAIViewModel.uiState.collectAsStateWithLifecycle() | |
val scope = rememberCoroutineScope() |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
bool isTerminator(char ch) { | |
bool result = false; | |
char terminators[5] = { ';', '.', '!' , '?'}; | |
for (int j = 0; j < sizeof(terminators) / sizeof(terminators[0]); j++) { | |
if (ch == terminators[j]) { | |
result = true; |
This file contains 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
def int_palindrome(num: int): | |
_list = [] | |
i = 1 | |
int_length = int(math.log10(num)) + 1 | |
size_zeroes = 10**int_length | |
for j in range(size_zeroes): | |
if i >= size_zeroes: | |
break | |
digit = (num%(10*i))//i |
This file contains 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
package com.example.qurantutor.network | |
object BaseURL { | |
const val smbbaseUrl = "smb://$publicIP/shared/" | |
} |
This file contains 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
package com.example.qurantutor | |
import android.Manifest | |
import android.content.Intent | |
import android.content.pm.PackageManager | |
import android.media.MediaRecorder | |
import android.os.Build | |
import android.os.Bundle | |
import android.os.Environment | |
import android.util.Log |