This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ColorGenerator { | |
| public static ColorGenerator DEFAULT; | |
| public static ColorGenerator MATERIAL; | |
| static { | |
| DEFAULT = create(Arrays.asList( | |
| 0xfff16364, | |
| 0xfff58559, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <shape xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <gradient | |
| android:angle="270" | |
| android:endColor="@android:color/transparent" | |
| android:startColor="#50000000" /> | |
| </shape> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:background="@android:color/black" | |
| android:orientation="vertical" | |
| tools:context=".MainActivity"> | |
| <android.support.v7.widget.Toolbar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.util.Log; | |
| import com.squareup.okhttp.Request; | |
| import com.squareup.okhttp.Response; | |
| import org.apache.http.auth.AuthenticationException; | |
| import org.apache.http.auth.Credentials; | |
| import org.apache.http.auth.MalformedChallengeException; | |
| import org.apache.http.impl.auth.DigestScheme; | |
| import org.apache.http.message.BasicHeader; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -module(urljoin). | |
| -compile([export_all]). | |
| s() -> | |
| lists:flatten(urljoin([{foo, "bar"}, {baz, "quux"}, {fubar, "ok"}])). | |
| %%iolist_to_binary(urljoin([{foo, "bar"}, {baz, "quux"}, {fubar, "ok"}])). | |
| urljoin([{K, V}]) -> | |
| [atom_to_list(K), "=", V]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function s(e){return e=!e&&e!=0?'':e+''} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var CoreApi = function(){ | |
| var host = "host" | |
| var post = function (path, params, callback) { | |
| request(host, 'POST', params, callback) | |
| } | |
| var request = function (url, method, params, callback) { | |
| var xhr = new XMLHttpRequest(); | |
| if(params == 'POST'){ | |
| xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| config: | |
| key: value | |
| key2: value2 | |
| key3: | |
| - one | |
| - two | |
| - three | |
| key4: | |
| key4_1: 41 |