Skip to content

Instantly share code, notes, and snippets.

View silvernoo's full-sized avatar
🎯
Focusing

Flan-chan silvernoo

🎯
Focusing
View GitHub Profile
version: '3'
volumes:
postgres_data:
driver: local
services:
postgres:
image: postgres
volumes:
@silvernoo
silvernoo / CookieSync.java
Last active August 29, 2015 14:27 — forked from qpark99/CookieSync.java
android loopj http library, WebView Cookie Sync
AsyncHttpClient mClient = new AsyncHttpClient();
CookieSyncManager.createInstance(context);
CookieStore cookieStore = new PersistentCookieStore(c);
mClient.setCookieStore(cookieStore);
public void syncCookie() {
HttpContext httpContext = mClient.getHttpContext();
CookieStore cookieStore = (CookieStore) httpContext.getAttribute(ClientContext.COOKIE_STORE);
List<Cookie> cookies = cookieStore.getCookies();
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_content"
style="@style/match">
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerview"
style="@style/match"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />