Skip to content

Instantly share code, notes, and snippets.

View Nikhil-z's full-sized avatar
🎯
░K░o░t░l░i░n░ ░i░s░ ░a░l░l░ ░a░b░o░u░t░ ░'░f░u░n░'░

Nikhil Nikhil-z

🎯
░K░o░t░l░i░n░ ░i░s░ ░a░l░l░ ░a░b░o░u░t░ ░'░f░u░n░'░
View GitHub Profile
package com.emil.android.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.telephony.TelephonyManager;
/**
* Check device's network connectivity and speed
* @author emil http://stackoverflow.com/users/220710/emil
@Nikhil-z
Nikhil-z / API.md
Created August 24, 2017 10:00 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@Nikhil-z
Nikhil-z / PlayPauseView.java
Created June 1, 2021 09:15 — forked from ozgurg/PlayPauseView.java
Android Animated Play Pause Button by using AnimatedVectorDrawable
public class PlayPauseView extends AppCompatImageView {
public static final int STATE_PLAY = 1;
public static final int STATE_PAUSE = 2;
private AnimatedVectorDrawableCompat mPlayToPauseAnim, mPauseToPlay;
private Animation mFadeOutAnim, mFadeInAnim;
public PlayPauseView(Context context) {
super(context);
Init(context);
@Nikhil-z
Nikhil-z / build.gradle
Created November 4, 2021 09:58 — forked from up1/build.gradle
Android Library with Artifactory
apply plugin: 'com.android.library'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'maven-publish'
def packageName = 'codeinputlib'
def libraryVersion = '1.0.0'
buildscript {
repositories {
jcenter()
@Nikhil-z
Nikhil-z / disposable-email-provider-domains
Created April 13, 2022 09:59
List of disposable email provider domains
0815.ru
0wnd.net
0wnd.org
10minutemail.co.za
10minutemail.com
123-m.com
1fsdfdsfsdf.tk
1pad.de
20minutemail.com
21cn.com
import android.content.Context
import android.net.ConnectivityManager
import android.net.Network
import android.net.NetworkCapabilities
import android.net.NetworkRequest
import android.os.Bundle
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
@Nikhil-z
Nikhil-z / StopwatchAnimation.kt
Created October 11, 2022 09:33 — forked from stevdza-san/StopwatchAnimation.kt
Create a Stopwatch Animation on a Text with Jetpack Compose
import androidx.compose.animation.*
import androidx.compose.animation.core.tween
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
@Nikhil-z
Nikhil-z / LoadingAnimation.kt
Created December 1, 2022 05:32 — forked from stevdza-san/LoadingAnimation.kt
Loading Animation with Jetpack Compose
import androidx.compose.animation.core.*
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
@Nikhil-z
Nikhil-z / Android TimeZone Ids
Created May 3, 2023 09:14 — forked from arpit/Android TimeZone Ids
List of all Android TimeZone ids
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Asmera
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau