Skip to content

Instantly share code, notes, and snippets.

justinthomas-syncbak

Block or report user

Report or block justinthomas-syncbak

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
@justinthomas-syncbak
justinthomas-syncbak / StartLinearSnapHelper.kt
Last active Jan 24, 2019
SnapHelper for RecyclerView to snap to the child's start instead of center
View StartLinearSnapHelper.kt
MOVED TO https://gist.github.com/Jthomas54/45fa1ff71078a10fb302694cc9218400
@justinthomas-syncbak
justinthomas-syncbak / okhttp3.WebviewCookieHandler.java
Last active May 12, 2019
Cookie jar that handles syncing okhttp cookies with Webview cookie manager
View okhttp3.WebviewCookieHandler.java
MOVED TO https://gist.github.com/Jthomas54/2f34b8aea5b457db5459e2421deffd15
@justinthomas-syncbak
justinthomas-syncbak / ColorsHelper.java
Last active Jan 24, 2019
Determine contrasting color based on another
View ColorsHelper.java
MOVED TO https://gist.github.com/Jthomas54/5c59ec968a7947f2c864a8184bc64e30
View CircularPagerViewAdapter.java
import android.support.v4.view.PagerAdapter;
import java.util.Collections;
import java.util.List;
public abstract class CircularPagerViewAdapter<TModel> extends PagerAdapter {
private List<TModel> source = Collections.emptyList();
private boolean isCircular = false;
public void setSource(List<TModel> source) {
@justinthomas-syncbak
justinthomas-syncbak / IntervalSeekBar.java
Created Oct 26, 2015
Seek bar that enabled adding marks to the tracking bar
View IntervalSeekBar.java
/**
* Seekbar that enables placing interval marks to the progress bar
*/
public class IntervalSeekBar extends SeekBar {
//TODO: Add color setting
/**
* Used to determine the percentage we have completed
*/
private long duration;
@justinthomas-syncbak
justinthomas-syncbak / okhttp.WebviewCookieHandler
Last active Jan 24, 2019
OkHttp and Webview cookie sharing
View okhttp.WebviewCookieHandler
MOVED TO https://gist.github.com/Jthomas54/d20108abff7a8502b8f4bfaed32d4fe3
You can’t perform that action at this time.