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 |
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
$ 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
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
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
/* | |
* Copyright (C) 2012 Makoto Yamazaki <[email protected]> | |
* | |
* 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 |
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
#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
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
<?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" /> |