View slide_in_bottom.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"> | |
<translate android:fromYDelta="100%p" android:toYDelta="0%p" android:duration="600"/> | |
<alpha android:fromAlpha="5.0" android:toAlpha="1.0" /> | |
</set> |
View slide_out_bottom.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"> | |
<translate android:fromYDelta="0%p" android:toYDelta="100%p" android:duration="600"/> | |
<alpha android:fromAlpha="1.0" android:toAlpha="5.0" /> | |
</set> |
View gist:9524857
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
Beginning with Android 3.0 (API level 11), an extra feature is available in AsyncTask | |
so you can enable it to run across multiple processor cores. Instead of calling execute() | |
you can specify executeOnExecutor() and multiple requests can be executed at the same time | |
depending on the number of cores available. |
View CropCircleTransformation.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
package com.goald.twooceans.util; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapShader; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.PorterDuff; | |
import android.graphics.PorterDuffXfermode; |
View vaadin_spring_tomcat.txt
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
add-on : http://vaadin.xpoft.ru/ | |
Issues: | |
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener | |
see: http://stackoverflow.com/questions/6210757/java-lang-classnotfoundexception-org-springframework-web-context-contextloaderl |
View jenkins.config
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
# Android SDK update | |
(for i in {1..30}; do echo y; sleep 1; done) | /opt/android/android-sdk-linux/tools/android update sdk -u -a |
View PlayFramework-Scala
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
Routes configures in *conf/routes* | |
Controllers reside in *app/controllers/* |
View activator-play-debug
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
$ ./activator -jvm-debug <port> run | |
<port> is typically 9999 |
View Log.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
package com.utils; | |
/** | |
* Convenience Log wrapper | |
*/ | |
public class Log { | |
public static void d( final String tag, final String msg, final Object... vargs ) { | |
android.util.Log.d( tag, String.format( msg, vargs ) ); | |
} | |
public static void d( final String tag, final String msg, final Throwable throwable, final Object... vargs ) { |
View bash
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
$ keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 |
OlderNewer