Skip to content

Instantly share code, notes, and snippets.

View ReactorboY's full-sized avatar
🏠
Chilling

Muhammad Hussain ReactorboY

🏠
Chilling
  • 05:47 (UTC +05:30)
View GitHub Profile
@ReactorboY
ReactorboY / libs.version.toml
Last active August 29, 2023 16:15
Common Android Gradle Dependencies in Version Catalog
[versions]
agp = "8.1.1"
datastorePreferences = "1.0.0"
hiltAndroid = "2.47"
org-jetbrains-kotlin-android = "1.8.10"
core-ktx = "1.9.0"
junit = "4.13.2"
androidx-test-ext-junit = "1.1.5"
espresso-core = "3.5.1"
lifecycle-runtime-ktx = "2.6.1"
import bluetooth
# host machine bluetooth mac address
bt_mac_address = "74:E5:F9:97:F8:E1"
server_sock = bluetooth.BluetoothSocket(bluetooth.RFCOMM)
server_sock.bind((bt_mac_address, bluetooth.PORT_ANY))
server_sock.listen(1)
port = server_sock.getsockname()[1]
uuid = "00001101-0000-1000-8000-00805F9B34FB"
bluetooth.advertise_service(server_sock, "BluetoothServer", service_id=uuid, service_classes=[uuid, bluetooth.SERIAL_PORT_CLASS], profiles=[bluetooth.SERIAL_PORT_PROFILE])
@ReactorboY
ReactorboY / playapi.json
Created March 13, 2023 16:17
Google Play Integrity Api Response
{
"requestDetails": {
"requestPackageName": "",
"timestampMillis": "1678724056875",
"nonce": "aGVsbG93b3JsZGhvd2FyZXlvdQ\u003d\u003d"
},
"appIntegrity": {
"appRecognitionVerdict": "UNRECOGNIZED_VERSION",
"packageName": "",
"certificateSha256Digest": [""],
@ReactorboY
ReactorboY / build.gradle
Created March 5, 2023 07:38
Basic Android App Build Gradle's dependencies
// HILT
implementation "com.google.dagger:hilt-android:2.45"
kapt "com.google.dagger:hilt-compiler:2.45"
// RETROFIT
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.1'
@ReactorboY
ReactorboY / main.go
Created August 8, 2022 16:20 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@Composable
fun CheckForPermission() {
val result = remember {
mutableStateOf(false)
}
val launcher = rememberLauncherForActivityResult(contract = ActivityResultContracts.RequestPermission()){
result.value = it
}