View ObsoleteUrlFactory.java
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
/* | |
* Copyright (C) 2014 Square, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
View gradle-wrapper.properties
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
#Sun May 12 15:08:17 ICT 2019 | |
distributionBase=GRADLE_USER_HOME | |
distributionPath=wrapper/dists | |
zipStoreBase=GRADLE_USER_HOME | |
zipStorePath=wrapper/dists | |
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-5.1.1-all.zip |
View TextDelegateHack.java
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 com.airbnb.lottie.TextDelegate; | |
import org.joor.Reflect; | |
import java.util.Map; | |
public class TextDelegateHack { | |
private Reflect mTextDelegateRef; |
View AnimateCounter.java
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
/* | |
* Copyright (C) 2015 Hooked On Play | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
View popup_animation.xml
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
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android" | |
android:fillAfter="true" | |
android:fillBefore="true" | |
android:interpolator="@android:interpolator/linear" | |
android:shareInterpolator="true"> | |
<alpha | |
android:duration="250" | |
android:fromAlpha="0.0" | |
android:startOffset="0" |
View buildRawMediaSource.java
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
private MediaSource buildRawMediaSource() throws RawResourceDataSource.RawResourceDataSourceException { | |
RawResourceDataSource rawDataSource = new RawResourceDataSource(this); | |
// open the /raw resource file | |
rawDataSource.open(new DataSpec(RawResourceDataSource.buildRawResourceUri(R.raw.test11_rotate_270))); | |
return new ProgressiveMediaSource.Factory(new DefaultDataSourceFactory(this, "ExoTest")).createMediaSource(rawDataSource.getUri()); | |
} |
View git-hist
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
git config --global alias.hist "log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(red)%s %C(bold red){{%an}}%C(reset) %C(blue)%d%C(reset)' --graph --date=short" |
View find_middle_node_in_linked_list.java
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
ListNode slow = head; | |
ListNode fast = head.next; | |
// 奇数链表,slow 位于中间节点 | |
// 偶数链表,slow 位于左边节点 | |
while (slow.next != null && fast.next != null) { | |
slow = slow.next; | |
fast = fast.next; | |
} | |
// 后半部分头节点 |
View alias.zsh
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
fix_sdk='echo "sdk.dir=`echo $ANDROID_SDK_HOME`" > local.properties; echo ndk.dir=`echo $ANDROID_NDK_HOME` >> local.properties' | |
tcpdump_start_n='adb shell /data/local/tmp/tcpdump -vv -s 0 -w /sdcard/tcp.cap' | |
tcpdump_pull='adb pull /sdcard/tcp.cap' | |
tcpdump_start='adb shell tcpdump -vv -s 0 -w /sdcard/tcp.cap' | |
pm_clear='adb shell pm clear' |
View android-aar-maven-local.sh
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 ANDROID_HOME=/Applications/Android\ Studio.app/sdk/ | |
cd facebook-android-sdk-3.14 | |
gradle facebook:build | |
mv facebook/build/libs/facebook.aar facebook/build/libs/facebook-3.14.aar | |
mvn install:install-file -Dfile=facebook/build/libs/facebook-3.14.aar -DgroupId=com.facebook -DartifactId=android-sdk -Dversion=3.14 -Dpackaging=aar |
NewerOlder