Skip to content

Instantly share code, notes, and snippets.

Just do it!

Hossain Khan amardeshbd

Just do it!
View GitHub Profile
amardeshbd / AvdLoadingProgressBar.kt
Last active May 8, 2021
Android custom indeterminate progress bar using ImageView and Animated Vector Drawable
View AvdLoadingProgressBar.kt
import android.content.Context
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatImageView
* Custom loading indicator using Animated vector drawable.
View resume.json
"basics": {
"name": "Hossain Khan",
"label": "Sr. Android Developer at Quickplay",
"phone": "",
"website": "",
"summary": "Consultant - Android Application Development\n\nSpecialties: \n\n * Android Development (Hybrid, Native [Mobile/Phablet/Tablet], TV)\n * Server Side Scripting Language (PHP - ZendFramework/Symfony, JSP)\n * Database Management System (MySQL, Oracle, SQLite - Android)\n * Version Control System (SVN, Git [Github, Bitbucket, Stash])\n * Project Management/Collaboration (Trac, Bugzilla, JIRA, Trello)\n * Crash reporting platform (Crashlytics, Bugsense)\n * Build server (Jenkins, Travis CI)\n * IDE/Tools (Android Studio (IntelliJ IDEA), ADT, Eclipse, Aptana, Netbeans)\n * Unix/Linux OS Management",
"location": {
"address": "North York, Ontario, Canada",
"postalCode": "",
amardeshbd / livetemplate.groovy
Last active Sep 14, 2019
Kotlin - Timber Log Live Template
View livetemplate.groovy
Go to Android Studio Preferences
Editor > Live Template > Kotlin
Duplicate "soutp" and use following template for `$FORMAT`.
Applicable in kotlin statement (it should be pre-selected for you, since you copied `soutp`)
View express-simple-api.js
* Say hello API
* Try:
app.get('/say/hello', (req, res) => {
// Return success response
return res.status(200).json({"message":"Hello there... Welcome to mock server."});
/* [END `/say/hello` ] - must be added before `exports.api = ...` */
amardeshbd / express-and-firebase.js
Created Mar 13, 2019
Firebase and express barebone.
View express-and-firebase.js
'use strict';
// [START import]
const functions = require('firebase-functions');
const express = require('express');
const app = express();
// [END import]
// [START middleware]
const cors = require('cors')({origin: true});
amardeshbd /
Created Mar 13, 2019
Update npm modules
cd functions
npm install
cd ..
firebase use --add your-project-id-23d6x
amardeshbd /
Created Mar 13, 2019
Firebase list projects
View build.gradle.js
productFlavors {
dev {
// To avoid using legacy multidex, set minSdkVersion to 21 or higher.
minSdkVersion 21
// The following configuration limits the "dev" flavor to using
// English string resources and xxhdpi screen-density resources.
resConfigs "en", "xxxhdpi"