WIFI_MAC_ADDRESS
BLUETOOTH_MAC_ADDRESS
ANDROID_ID
// IMEI
ANDROID_DEVICE_ID
/** A hardware serial number, if available. Alphanumeric only, case-insensitive. */
ANDROID_SERIAL
// 安装后生成的唯一ID
INSTALL_ID
This file contains 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
{ | |
"code": "OK", | |
"message": null, | |
"result": [ | |
{ | |
"id": "fa1005fc4b3c48d3014b4970168615d5", | |
"parentId": null, | |
"courseCollectId": "fa1005fc4b323c76014b395696445398", | |
"title": "工程造价管理及其基本制度", | |
"playUrl": null, |
This file contains 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
#export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
#source $GITAWAREPROMPT/main.sh | |
export CLICOLOR=1 | |
export PATH=~/bin:$PATH | |
export PATH=/usr/local/bin:$PATH | |
export PATH=/usr/local/lib:$PATH | |
export PATH=${PATH}:/usr/local/lib/node_modules/hexo-cli/bin/ | |
export PATH=${PATH}:~/Library/gradle | |
export PATH=${PATH}:~/Library/gradle/bin | |
export PATH=${PATH}:/Users/twocity/Documents/android/adt-bundle/sdk |
This file contains 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
_googleplayDebugCompile - ## Internal use, do not manually configure ## | |
+--- com.android.support:multidex:1.0.1 | |
+--- project :core | |
| +--- com.android.support:support-annotations:22.1.1 | |
| +--- com.google.code.gson:gson:2.3 -> 2.3.1 | |
| +--- com.squareup.retrofit:retrofit:1.9.0 | |
| | \--- com.google.code.gson:gson:2.3.1 | |
| +--- com.squareup.okhttp:okhttp:2.4.0-RC1 | |
| | \--- com.squareup.okio:okio:1.4.0 | |
| +--- io.reactivex:rxjava:1.0.3 |
This file contains 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
/** | |
* Returns an HTTP user agent of the form | |
* "Dalvik/1.1.0 (Linux; U; Android Eclair Build/MASTER)". | |
*/ | |
private static String getDefaultUserAgent() { | |
StringBuilder result = new StringBuilder(64); | |
result.append("Dalvik/"); | |
result.append(System.getProperty("java.vm.version")); // such as 1.1.0 | |
result.append(" (Linux; U; Android "); |
This file contains 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.graphics.Rect; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
/** | |
* An empty header (or footer) decoration for RecyclerView, since RecyclerView can't clipToPadding | |
*/ | |
public class SimpleHeaderDecoration extends RecyclerView.ItemDecoration { | |
private final int headerHeight; | |
private final int footerHeight; |
This file contains 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 RefreshTokenInterceptor implements Interceptor { | |
@Override public Response intercept(Chain chain) throws IOException { | |
Request originRequest = chain.request(); | |
Response response = chain.proceed(originRequest); | |
if (isTokenExpired(response)) { | |
Request newRequest = buildRefreshTokenRequest(originRequest); | |
Response refreshResponse = chain.proceed(newRequest); | |
if (refreshResponse.isSuccessful()) { | |
return chain.proceed(originRequest); // must with the new token |
This file contains 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
http://google.github.io/dagger/ | |
http://fernandocejas.com/2015/04/11/tasting-dagger-2-on-android/ | |
https://docs.google.com/document/d/1fwg-NsMKYtYxeEWe82rISIHjNrtdqonfiHgp8-PQ7m8/ | |
https://www.youtube.com/watch?v=oK_XtfXPkqw |
This file contains 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
abstract class BaseEpoxyHolder : EpoxyHolder() { | |
lateinit var itemView: View | |
final override fun bindView(view: View?) { | |
this.itemView = view!! | |
onBindView(itemView) | |
} | |
abstract fun onBindView(view: View) | |
} |
This file contains 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
Usage: configure [options] | |
Options: [defaults in brackets after descriptions] | |
Standard options: | |
--help print this message | |
--logfile=FILE log tests and output to FILE [config.log] | |
--disable-logging do not log configure debug information | |
--prefix=PREFIX install in PREFIX [] | |
--bindir=DIR install binaries in DIR [PREFIX/bin] | |
--datadir=DIR install data files in DIR [PREFIX/share/ffmpeg] |