Skip to content

Instantly share code, notes, and snippets.

View TomMannson's full-sized avatar

Tomasz Król TomMannson

View GitHub Profile
@TomMannson
TomMannson / AccountAuthenticator.java
Created September 12, 2019 09:01 — forked from burgalon/AccountAuthenticator.java
Implementing OAuth2 with AccountManager, Retrofit and Dagger
public class AccountAuthenticator extends AbstractAccountAuthenticator {
private final Context context;
@Inject @ClientId String clientId;
@Inject @ClientSecret String clientSecret;
@Inject ApiService apiService;
public AccountAuthenticator(Context context) {
super(context);
@TomMannson
TomMannson / gist:e578f5bdb96524217d479311de6ba393
Last active April 24, 2019 06:04 — forked from gordwilling/gist:f8897e8cd82f58b28b44d875778892fa
Configure git to use IntelliJ IDEA as the diff and merge tool on Windows
[merge]
tool = intellij
[mergetool "intellij"]
cmd = C:/Program\\ Files/Android/Android\\ Studio/bin/studio64.exe merge \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
[diff]
tool = intellij
[difftool "intellij"]