Skip to content

Instantly share code, notes, and snippets.

View ramakrishnajoshi's full-sized avatar
🎯
Focusing

Ramakrishna Joshi ramakrishnajoshi

🎯
Focusing
  • Bangalore, India
  • 14:54 (UTC +05:30)
View GitHub Profile
@manishk3008
manishk3008 / Android Persistent Cookies Store
Last active December 29, 2020 09:17
CookieStore for dealing with persistent cookies in Android
//HOW TO USE
SiCookieStore2 siCookieStore = new SiCookieStore2(context);
CookieManager cookieManager = new CookieManager((CookieStore) siCookieStore, CookiePolicy.ACCEPT_ALL);
CookieHandler.setDefault(cookieManager);
@staltz
staltz / introrx.md
Last active July 19, 2024 22:21
The introduction to Reactive Programming you've been missing
@JakeWharton
JakeWharton / Truss.java
Last active June 9, 2023 07:35
Extremely simple wrapper around SpannableStringBuilder to make the API more logical and less awful. Apache 2 licensed.
import android.text.SpannableStringBuilder;
import java.util.ArrayDeque;
import java.util.Deque;
import static android.text.Spanned.SPAN_INCLUSIVE_EXCLUSIVE;
/** A {@link SpannableStringBuilder} wrapper whose API doesn't make me want to stab my eyes out. */
public class Truss {
private final SpannableStringBuilder builder;
private final Deque<Span> stack;