Skip to content

Instantly share code, notes, and snippets.

View mSobhy90's full-sized avatar

Mo Sobhy mSobhy90

View GitHub Profile
@mSobhy90
mSobhy90 / BuggyTestMapperImpl.java
Last active January 18, 2024 11:22
MapStruct <> Lombok boolean property with `is` in the name issue
// The mapper generated by MapStruct without fixes (commented out code)
package com.transferwise.swiftprocessor.mapper.event;
import javax.annotation.processing.Generated;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2024-01-17T22:06:57+0000",
comments = "version: 1.5.3.Final, compiler: IncrementalProcessingEnvironment from gradle-language-java-7.4.2.jar, environment: Java 17.0.9 (Azul Systems, Inc.)"
)
@mSobhy90
mSobhy90 / AbstractRecyclerViewFooterAdapter.java
Last active March 11, 2017 04:54
An example of how-to implement an infinite scrolling adapter for a RecyclerView, with a ProgressBar footer. Blog post can be found here: http://msobhy.me/2015/09/05/infinite_scrolling_recyclerview/
package net.sarmady.contactcarswithtabs.adapters;
import android.support.annotation.NonNull;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ProgressBar;
@mSobhy90
mSobhy90 / BufferReader.java
Last active March 13, 2017 05:19
A logger interceptor for OkHttp 2.2+ and Retrofit 2.0.0-beta1
package net.sarmady.contactcarswithtabs.utils;
import com.squareup.okhttp.Request;
import java.io.IOException;
import okio.Buffer;
/**
* Created by mSobhy on 8/30/15.<br/>