One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
ListNode slow = head; | |
ListNode fast = head.next; | |
// 奇数链表,slow 位于中间节点 | |
// 偶数链表,slow 位于左边节点 | |
while (slow.next != null && fast.next != null) { | |
slow = slow.next; | |
fast = fast.next; | |
} | |
// 后半部分头节点 |
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' |
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 |
package com.tmall.android.toast; | |
import android.content.Context; | |
import android.os.Handler; | |
import android.os.Message; | |
import android.support.annotation.StringRes; | |
import android.widget.Toast; | |
import java.lang.reflect.Field; |
file_name="com.wlqq.phantom.plugin.ymm.cargo_1.5.15.apk" | |
base_name=${file_name/.apk/} | |
package_name=`echo $base_name | cut -d"_" -f 1` | |
version_name=`echo $base_name | cut -d"_" -f 2` | |
echo $package_name # com.wlqq.phantom.plugin.ymm.cargo | |
echo $version_name # 1.5.15 |
/* | |
* Copyright 2018 Yan Zhenjie | |
* | |
* 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 |
package com.lody.virtual.helper; | |
import android.os.Build; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.Executor; |
android { | |
lintOptions { | |
checkReleaseBuilds false | |
abortOnError false | |
disable 'GoogleAppIndexingWarning', | |
'IconMissingDensityFolder', | |
'IconDensities', | |
'RtlHardcoded', | |
'RtlSymmetry', |
alias fix_sdk='echo "sdk.dir=`echo $ANDROID_SDK`" > local.properties; echo ndk.dir=`echo $ANDROID_NDK` >> local.properties' |