Skip to content

Instantly share code, notes, and snippets.

Koen Vlaswinkel koesie10

Block or report user

Report or block koesie10

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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;
}
You can’t perform that action at this time.