Skip to content

Instantly share code, notes, and snippets.

View pavelsust's full-sized avatar
:bowtie:
Focusing

Md.Masud Parvez pavelsust

:bowtie:
Focusing
View GitHub Profile
@pavelsust
pavelsust / Datetest.java
Created August 26, 2019 05:42
Convert any date to GMT and compare two date
package packagename;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
public class Datetest {
public static String DATE_FORMAT = "yyyy-MM-dd hh:mm a zzz";
@pavelsust
pavelsust / facebook.java
Created August 15, 2019 10:11
get device id for facebook ad test
public class customTask extends AsyncTask<Void, String, String> {
@Override
protected void onPreExecute() {
super.onPreExecute();
}
@Override
protected String doInBackground(Void... voids) {
@pavelsust
pavelsust / EqualSpacingItemDecoration.java
Created July 24, 2019 19:15
ItemDecoration for recycleview horizontal and vertical
package com.utils;
import android.graphics.Rect;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
public class EqualSpacingItemDecoration extends RecyclerView.ItemDecoration {
private final int spacing;
private int displayMode;
@pavelsust
pavelsust / Datetest.java
Last active July 22, 2019 08:58
Current date and Time Convert to GMT time and compare
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
public class Datetest {
public static String DATE_FORMAT = "yyyy MMM dd hh:mm a zzz";
public static void main(String[] args) {