View gist:e53d46eeaca432c444ec1c7fa4110827
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cat.joanpujol; | |
import org.mapstruct.InheritInverseConfiguration; | |
import org.mapstruct.Mapper; | |
import org.mapstruct.Mapping; | |
public class Test { | |
} | |
View TestVC.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File.swift | |
// Medicaments | |
// | |
// Created by Joan Pujol Espinar on 22/11/2016. | |
// Copyright © 2016 Joan Pujol. All rights reserved. | |
// | |
import UIKit | |
class TestVC : UIViewController { |
View SafeFragmentPagerAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cat.joanpujol.androidbase.adapter; | |
/* | |
* Copyright (C) 2011 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
View SafeFragmentPagerAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cat.joanpujol.androidbase.adapter; | |
/* | |
* Copyright (C) 2011 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
View ForeGroundService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cat.joanpujol.androidbase.services.foreground; | |
/** | |
* Created by lujop on 11/10/16. | |
*/ | |
public interface ForegroundService { | |
void onCreate(); | |
void onDestroy(); | |
} |
View FirebaseOnlineTracker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cat.joanpujol.firebase; | |
import com.google.firebase.database.FirebaseDatabase; | |
import java.util.Arrays; | |
import java.util.HashSet; | |
import java.util.Set; | |
import java.util.concurrent.Callable; | |
import java.util.concurrent.ScheduledFuture; | |
import java.util.concurrent.ScheduledThreadPoolExecutor; |
View RxFirebase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.firebase.client; | |
import com.firebase.client.core.Constants; | |
import rx.Observable; | |
import rx.Subscriber; | |
import rx.functions.Action0; | |
import rx.functions.Func1; | |
import rx.subscriptions.Subscriptions; | |
public class RxFirebase { |
View ContactsGlideLoader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cat.joanpujol.utils.glide; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.net.Uri; | |
import android.provider.ContactsContract; | |
import com.bumptech.glide.Priority; | |
import com.bumptech.glide.load.data.DataFetcher; | |
import com.bumptech.glide.load.model.ModelLoader; |