Skip to content

Instantly share code, notes, and snippets.

View FareesHussain's full-sized avatar
🍴
Forking

Farees Hussain FareesHussain

🍴
Forking
View GitHub Profile
@FareesHussain
FareesHussain / dependencies for coroutines
Last active September 27, 2020 20:57
Coroutines dependencies
// ------> to use basic implementations <------
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.5'
// ------> used for Lifecycle Scopes <------
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0"
// ------> used for Firebase-ktx <------
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.1.1"
@mrk-han
mrk-han / emulator-install-using-avdmanager.md
Last active May 1, 2024 21:12
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"

@nilninull
nilninull / multi-click-keys.scm
Last active June 18, 2023 23:36
A function for add a multi-click feature to xbindkeys
(use-modules (srfi srfi-19))
;; 100000000 nano seconds -> 0.1s
;; 200000000 nano seconds -> 0.2s
;; 300000000 nano seconds -> 0.3s
;; 400000000 nano seconds -> 0.4s
;; 500000000 nano seconds -> 0.5s
;; 1000000000 nano seconds -> 1s
;; This value is used for judge `clicking are continuously or not'