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
diff --git a/VolleySample/libs/okhttp-1.0.2.jar b/VolleySample/libs/okhttp-1.0.2.jar | |
new file mode 100644 | |
index 0000000..7592cdf | |
Binary files /dev/null and b/VolleySample/libs/okhttp-1.0.2.jar differ | |
diff --git a/VolleySample/libs/volley.jar b/VolleySample/libs/volley.jar | |
index 31c143c..762e993 100644 | |
Binary files a/VolleySample/libs/volley.jar and b/VolleySample/libs/volley.jar differ | |
diff --git a/VolleySample/src/com/adamrocker/volleysample/MainActivity.java b/VolleySample/src/com/adamrocker/volleysample/MainActivity.java | |
index b2c1dd5..c2118c5 100644 | |
--- a/VolleySample/src/com/adamrocker/volleysample/MainActivity.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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.backupagentsample" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-sdk | |
android:minSdkVersion="8" | |
android:targetSdkVersion="17" /> |
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
wifiadb() | |
{ | |
addr=$(adb $ADB_OPTS shell ip -f inet -o addr show dev wlan0 | awk 'BEGIN { FS="[ /]+"} {print $4;}') | |
if [ x"$addr" = x"" ]; then | |
return 1; | |
fi | |
echo "addr: ${addr}" | |
adb $ADB_OPTS tcpip 5555 | |
adb connect ${addr}:5555 | |
unset addr |
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
#include <stdio.h> | |
#include <math.h> | |
int | |
main(int argc, char* argv[]) | |
{ | |
printf("%s\n", NAN == NAN ? "true" : "false"); | |
return 0; | |
} |
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
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/NewProjectCreator.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/NewProjectCreator.java | |
index 19a7101..d7409da 100644 | |
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/NewProjectCreator.java | |
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/NewProjectCreator.java | |
@@ -210,6 +210,8 @@ public class NewProjectCreator { | |
private static final String LAYOUT_TEMPLATE = "layout.template"; //$NON-NLS-1$ | |
private static final String MAIN_LAYOUT_XML = "main.xml"; //$NON-NLS-1$ | |
+ private static final String KEY_IGNORE_WARNINGS = "ignore_optional_problems"; //$NON-NLS-1$ | |
+ |
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
package org.zakky.typeparameter; | |
import java.lang.reflect.ParameterizedType; | |
import java.lang.reflect.Type; | |
abstract class Base<K, V> { | |
} | |
class Sub<V> extends Base<String, V> { |
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
data MyMaybe a = MyJust a | MyNothing | |
instance Monad MyMaybe where | |
-- (>>=) :: (MyMaybe a) -> (a -> MyMaybe b) -> MyMaybe b | |
-- return :: a -> MyMaybe a | |
(>>=) MyNothing _ = MyNothing | |
(>>=) (MyJust x) f = f x | |
return = MyJust |
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
$ gradle build | |
:prepareDebugDependencies UP-TO-DATE | |
:compileDebugAidl UP-TO-DATE | |
:generateDebugBuildConfig UP-TO-DATE | |
:crunchDebugRes UP-TO-DATE | |
:processDebugManifest UP-TO-DATE | |
:processDebugRes UP-TO-DATE | |
:compileDebug UP-TO-DATE | |
:dexDebug UP-TO-DATE | |
:packageDebug UP-TO-DATE |
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
pushd ~/android-sdks/extras/android/support/v4/; rm -rf tmp__ android-support-v4-src.jar; mkdir tmp__; for d in src/*; do echo "copying files in $d"; (cd "$d"; cp -r . ../../tmp__); done; (cd tmp__; zip -q -r ../android-support-v4-src.jar .; echo "src=../libs_src/android-support-v4-src.jar" > ../android-support-v4.jar.properties); rm -rf tmp__; popd 2>&1 > /dev/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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.receiversample" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-sdk | |
android:minSdkVersion="8" | |
android:targetSdkVersion="15" /> | |
<application |