Skip to content
View alelopez07's full-sized avatar
🏠
🏠

Block or report alelopez07

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Working with Jetpack Compose and Loc... Working with Jetpack Compose and Location Service to get the current and last Latitude and Longitude.
    1
    override fun onCreate(savedInstanceState: Bundle?) {
    2
        super.onCreate();
    3
        setContent {
    4
            var latitude: Double? = null
    5
            var longitude: Double? = null
  2. Handle event-driven communication us... Handle event-driven communication using EventBus pattern in Android.
    1
    object Bus {
    2
        private val _events = MutableSharedFlow<Event>(
    3
            replay = 0,
    4
            extraBufferCapacity = 64
    5
        )
  3. A psql query to end active database ... A psql query to end active database sessions.
    1
    SELECT pg_terminate_backend(pg_stat_activity.pid)
    2
    FROM pg_stat_activity
    3
    WHERE datname = 'my_database'
    4
    AND pid <> pg_backend_pid();
  4. A custom implementation to protect i... A custom implementation to protect important string values using the Android Keystore system.
    1
    // ------------------------------------------------------------------------------
    2
    // Note: This script could help you encrypt and decrypt sensitive values such as 
    3
    // passwords or important keys that are stored in SQLite or runtime.
    4
    // ------------------------------------------------------------------------------
    5
    // reference: https://developer.android.com/guide/topics/security/cryptography
  5. login-impl login-impl Public

    This is an implementation of jetpack compose for a Simple Login scenario.

    Kotlin

  6. A custom implementation for https://... A custom implementation for https://spatie.be/docs/laravel-activitylog/v4/
    1
    <?php
    2
    
                  
    3
    namespace App\Repositories;
    4
    
                  
    5
    interface LogActivityInterface