Skip to content

Instantly share code, notes, and snippets.


Alex Fu alexfu

View GitHub Profile
JakeWharton /
Last active Nov 28, 2021
A Gson TypeAdapterFactory which allows serialization of @autovalue types. Apache 2 licensed.
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
* Marks an {@link AutoValue @AutoValue}-annotated type for proper Gson serialization.
* <p>
jjb / gist:2347804
Created Apr 10, 2012
How to build the pg gem on os x with macports
View gist:2347804

First, install your preferred version of postgres

sudo port install posgresql84

Now you have psql84 available, which rolls right off your fingers. Even better, your pg_config is buried in a postgresql84 namespace. Fix both of these with:

sudo port select --set postgresql postgresql84

Now you can intall the gem