Skip to content

Instantly share code, notes, and snippets.

View thedroiddiv's full-sized avatar
Learning

Divyansh Kushwaha thedroiddiv

Learning
View GitHub Profile
suspend fun getChatUsers(userIds: List<String>): List<ChatUser> {
return userIds.map { userId ->
async {
getUserById(userId)
}
}.awaitAll()
}
@thedroiddiv
thedroiddiv / sectets-on-android-local-props.md
Created January 12, 2024 15:27
sectets-on-android-local-props.md

Hiding API keys in local.properties

  1. Add the API key to your local.properties file:
apiKey=<value>
  1. Add to the build.gradle.kts file (module-level):
#!/bin/bash
build-from-nothing () {
sudo apt-get install -y nala
sudo nala install -y meson wget build-essential ninja-build cmake-extras cmake gettext gettext-base fontconfig libfontconfig-dev libffi-dev libxml2-dev libdrm-dev libxkbcommon-x11-dev libxkbregistry-dev libxkbcommon-dev libpixman-1-dev libudev-dev libseat-dev seatd libxcb-dri3-dev libvulkan-dev libvulkan-volk-dev vulkan-validationlayers-dev libvkfft-dev libgulkan-dev libegl-dev libgles2 libegl1-mesa-dev glslang-tools libinput-bin libinput-dev libxcb-composite0-dev libavutil-dev libavcodec-dev libavformat-dev libxcb-ewmh2 libxcb-ewmh-dev libxcb-present-dev libxcb-icccm4-dev libxcb-render-util0-dev libxcb-res0-dev libxcb-xinput-dev libpango1.0-dev xdg-desktop-portal-wlr hwdata
mkdir HyprSource
cd HyprSource
@thedroiddiv
thedroiddiv / divyansh_GSoC_2022.md
Last active October 7, 2022 17:34
Divyansh Kushwaha's GSoC 2022 Report
1. Install oh-my-zsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
2. Clone necessary plugins.
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-history-substring-search $ZSH_CUSTOM/plugins/zsh-history-substring-search
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
3. Add plugins to ~/.zshrc as
plugins = ( [plugins...] zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting)