Skip to content

Instantly share code, notes, and snippets.

View mukundmadhav's full-sized avatar

Mukund Madhav mukundmadhav

View GitHub Profile
@mukundmadhav
mukundmadhav / Pred example.java
Created January 10, 2022 10:20
Understanding Java's Functional Interfaces
Predicate<Integer> checkIfPositive = num -> (num > 0);
Predicate<Integer> checkIfSmallerThan100 = num -> (num < 100);
System.out.println(checkIfPositive.and(checkIfSmallerThan100).test(60)); // Output: true
http://localhost:3006/radiusoneweb/payThroughEmail/genericpaymentonaccount
inactive
http://localhost:8080/radiusoneweb/payThroughEmail/genericpaymentonaccount
<h1>Some technical Error occured</h1>
<h1>Some technical error occured</h1>
package com.mukundmadhav.gallery;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
package com.mukundmadhav.locationmanager;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.renderscript.Double2;
@mukundmadhav
mukundmadhav / activity_main.xml
Created July 12, 2017 07:56
Guess the celebrity
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"