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 android.Manifest | |
import android.annotation.SuppressLint | |
import android.content.Context | |
import android.content.pm.PackageManager | |
import android.view.View | |
import android.view.ViewGroup | |
import android.widget.FrameLayout | |
import android.widget.Toast | |
import androidx.camera.core.* | |
import androidx.camera.lifecycle.ProcessCameraProvider |
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
// Compose code | |
Image( | |
painter = if (expandedList.any { it.isSelected }) painterResource(id = R.drawable.drop_down_expand) else painterResource( | |
id = R.drawable.drop_down_collapse | |
), | |
contentDescription = text, modifier = Modifier.clickable { | |
manageCredentialViewModel.toggleList(text) | |
} | |
) |
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
--- | |
Parameters: | |
SecurityGroupDescription: | |
Description: Security Group Description | |
Type: String | |
Resources: | |
MyInstance: | |
Type: AWS::EC2::Instance | |
Properties: |
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 python | |
import os | |
import sys | |
import subprocess | |
if sys.version_info < (3,): | |
def decode_utf8(x): | |
return x | |
else: | |
import codecs |
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 android.app.PendingIntent | |
import android.os.Bundle | |
import android.util.Log | |
import android.widget.Button | |
import android.widget.EditText | |
import android.widget.Toast | |
import androidx.activity.enableEdgeToEdge | |
import androidx.activity.result.IntentSenderRequest | |
import androidx.activity.result.contract.ActivityResultContracts | |
import androidx.appcompat.app.AppCompatActivity |
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 android.content.BroadcastReceiver | |
import android.content.Context | |
import android.content.Intent | |
import android.os.Build | |
import android.widget.Toast | |
import com.google.android.gms.auth.api.phone.SmsRetriever | |
import com.google.android.gms.common.api.CommonStatusCodes | |
import com.google.android.gms.common.api.Status | |
class MySMSBroadcastReceiver: BroadcastReceiver() { |