Skip to content

Instantly share code, notes, and snippets.

View burakeregar's full-sized avatar

Burak Eregar burakeregar

View GitHub Profile
@burakeregar
burakeregar / analytics.d.ts
Last active July 6, 2023 00:04 — forked from AlbericoD/analytics.d.ts
Google analytics Overwolf
interface LocalSession {
sessionId?: string;
timestamp?: number;
}
interface PageViewParams {
hit: "page_view";
params: {
page_location: string;
page_title: string;
@Parcelize
data class Student(val id: String, val name: String, val grade: String) : Parcelable
public class Student implements Parcelable{
private String id;
private String name;
private String grade;
// Constructor
public Student(String id, String name, String grade){
this.id = id;
this.name = name;
this.grade = grade;
package com.burakeregar.kotlinparcelize
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
/**
* Created by Burak Eregar on 1.12.2017.
* burakeregar@gmail.com
* https://github.com/burakeregar
*/
@burakeregar
burakeregar / HomePresenterTest.kt
Created November 28, 2017 23:47
PresenterTest
package com.burakeregar.githubsearch.home.presenter
import com.burakeregar.githubsearch.api.Endpoints
import com.burakeregar.githubsearch.home.model.RepoItem
import com.burakeregar.githubsearch.home.model.RepoResponse
import com.nhaarman.mockito_kotlin.doReturn
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.verify
import com.util.TestSchedulerProvider
import io.reactivex.Observable
@burakeregar
burakeregar / TestSchedulerProvider.kt
Created November 28, 2017 23:44
Scheduler Injection in Testing
package com.util
import com.base.util.SchedulerProvider
import io.reactivex.Scheduler
import io.reactivex.schedulers.TestScheduler
/**
* Created by Burak Eregar on 18.11.2017.
* burakeregar@gmail.com
* https://github.com/burakeregar
package com.burakeregar.kotlinmvparchitecture.home
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import com.base.BaseActivity
import com.burakeregar.kotlinmvparchitecture.R
import com.burakeregar.kotlinmvparchitecture.home.di.DaggerHomeActivityComponent
import com.burakeregar.kotlinmvparchitecture.home.di.HomeActivityModule
import com.burakeregar.kotlinmvparchitecture.home.model.MarsPhotos
import com.burakeregar.kotlinmvparchitecture.home.model.MarsItem
package com.burakeregar.kotlinmvparchitecture.home.viewholder
import android.view.View
import com.burakeregar.kotlinmvparchitecture.home.model.MarsItem
import com.burakeregar.easiestgenericrecycleradapter.base.GenericViewHolder
import kotlinx.android.synthetic.main.row_mars.view.*
import org.greenrobot.eventbus.EventBus
/**
* Created by Burak Eregar on 23.05.2017.
package com.base.di.module
import android.app.Application
import android.content.res.Resources
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
import com.google.gson.Gson;
import com.google.gson.GsonBuilder
package com.base.di.component
import android.app.Application
import android.content.res.Resources
import com.base.di.module.ApiModule
import com.base.di.module.AppModule
import com.base.di.module.RetrofitModule
import com.burakeregar.kotlinmvparchitecture.api.Endpoints
import com.google.gson.Gson
import dagger.Component