Skip to content

Instantly share code, notes, and snippets.

View FareesHussain's full-sized avatar
🍴
Forking

Farees Hussain FareesHussain

🍴
Forking
View GitHub Profile

Instructions to build oppia using bazel

For linux and macOs only

This solution is a temproary hack to build oppia app if you are unable to build the app using oppia-bazel-setup-instructions Make sure you've installed bazel and other requirements

bazel --version
java --version
echo $ANDROID_HOME
@FareesHussain
FareesHussain / BUILD.bazel
Created March 4, 2021 04:37
example app BUILD.bazel
load("@rules_android//android:rules.bzl", "android_binary", "android_library")
# The final binary rule, which builds the APK and sets the application manifest,
# as well as any other resources needed by the application.
# The package for the R class for resources is normally inferred from the
# directory containing the BUILD file, but this BUILD file is not under a java
# directory, so we specify it manually.
android_binary(
name = "android",
custom_package = "com.google.bazel.example.android",
/**
* Language item view model for the recycler view in [AppLanguageFragment] and
* [AudioLanguageFragment].
*/
class LanguageItemViewModel(
val language: String,
private val selectedLanguage: LiveData<String>,
val languageRadioButtonListener: LanguageRadioButtonListener
) : ObservableViewModel() {
val isLanguageSelected: LiveData<Boolean> by lazy {
@FareesHussain
FareesHussain / gmail-github-filters.md
Created January 22, 2021 08:59 — forked from ldez/gmail-github-filters.md
Gmail and GitHub - Filters

Gmail and GitHub

Create new filters and create new labels.

Pull Request

from:(notifications@github.com) AND {"Patch Links" "approved this pull request." "requested changes on this pull request." "commented on this pull request." "pushed 1 commit." "pushed 2 commits." "pushed 3 commits."}

label: gh-pull-request

@FareesHussain
FareesHussain / GitCommitEmoji.md
Last active November 18, 2020 06:07 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@FareesHussain
FareesHussain / FileInformation.java
Created October 16, 2020 13:12 — forked from VassilisPallas/FileInformation.java
get file information from URI
import android.annotation.TargetApi;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.provider.DocumentsContract;
import android.provider.MediaStore;
import android.provider.OpenableColumns;
@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"
@FareesHussain
FareesHussain / Fragments.md
Last active July 31, 2020 18:01
all about fragments

Fragments

  • creating a fragment
  • using in jetpack navigations
  • view pager
@FareesHussain
FareesHussain / Notification.md
Created July 30, 2020 15:22
learning how to create notifications in android

NOTIFICATIONS

foreground notification and a basic notification

@FareesHussain
FareesHussain / Coroutines.md
Last active July 30, 2020 15:53
usage of coroutines in different aspects

Coroutines

description

best alternative for asynctask and Rxjava

dependencies

dependencies{