Skip to content

Instantly share code, notes, and snippets.

Avatar

Koen Vlaswinkel koesie10

View GitHub Profile
@koesie10
koesie10 / ApiModule.java
Created Oct 3, 2015
Retrofit 1 error handling behaviour in Retrofit 2
View ApiModule.java
// Dagger 1 example
@Module(
complete = false,
library = true
)
public final class ApiModule {
@Provides
@Singleton
Retrofit provideRetrofit(Gson gson, Application app) {
return new Retrofit.Builder()
View magic.php
<?php
class OverloadingClassFromHell
{
private $data = array();
public function __set($name, $value)
{
$this->data[$name] = $value;
}