Skip to content

Instantly share code, notes, and snippets.

View haerulmuttaqin's full-sized avatar
💻

Haerul Muttaqin haerulmuttaqin

💻
View GitHub Profile
import java.util.List;
import id.haerulmuttaqin.jobfinder.data.entity.GithubJob;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface ApiInterface {
@GET("positions.json")
import dagger.Module;
import dagger.android.ContributesAndroidInjector;
import id.haerulmuttaqin.jobfinder.ui.MainActivity;
import id.haerulmuttaqin.jobfinder.ui.detail.DetailActivity;
import id.haerulmuttaqin.jobfinder.ui.list.ListActivity;
@Module
public abstract class ActivityBuilder {
@ContributesAndroidInjector
import dagger.Module;
import dagger.android.ContributesAndroidInjector;
import id.haerulmuttaqin.jobfinder.ui.MainActivity;
import id.haerulmuttaqin.jobfinder.ui.detail.DetailActivity;
import id.haerulmuttaqin.jobfinder.ui.list.ListActivity;
@Module
public abstract class ActivityBuilder {
@ContributesAndroidInjector
import java.util.concurrent.TimeUnit;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import id.haerulmuttaqin.jobfinder.App;
import id.haerulmuttaqin.jobfinder.Constants;
import id.haerulmuttaqin.jobfinder.data.api.ApiInterface;
import id.haerulmuttaqin.jobfinder.data.api.ConnectionServer;
import android.os.Bundle;
import android.view.View;
import androidx.annotation.Nullable;
import androidx.lifecycle.ViewModelProvider;
import javax.inject.Inject;
import id.haerulmuttaqin.jobfinder.R;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;
import id.haerulmuttaqin.jobfinder.ui.MainActivity;
@Module
public abstract class ActivityBuilder {
@ContributesAndroidInjector
abstract MainActivity mainActivity();
}
@haerulmuttaqin
haerulmuttaqin / CustomRadioGroup.java
Created October 27, 2019 18:07
Android Custom Radio Group
package com.haerul.dreg.utils;
import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import com.haerul.dreg.R;
import com.haerul.dreg.data.db.repository.MasterRepository;
/*-----------------------------------------------------------------------------
- Developed by Haerul Muttaqin -
- Last modified 3/17/19 3:27 AM -
- Subscribe : https://www.youtube.com/haerulmuttaqin -
- Copyright (c) 2019. All rights reserved -
-----------------------------------------------------------------------------*/
package com.haerul.foodsapp.view.detail;
import android.content.Intent;
import android.graphics.PorterDuff;
@haerulmuttaqin
haerulmuttaqin / ApiClient.java
Created December 25, 2018 18:50
Android CRUD Tutorial | • RETROFIT • PHP • MYSQL (https://youtu.be/Vh92eSAEu5c)
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class ApiClient {
private static final String BASE_URL = "http://your-domain-name.000webhostapp.com/";
private static Retrofit retrofit;
public static Retrofit getApiClient() {
@haerulmuttaqin
haerulmuttaqin / gist:827dc1c80c49c8a21ab59751e17f1b71
Created December 10, 2018 17:07 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: