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 java.text.NumberFormat; | |
import java.text.ParseException; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.List; | |
/** | |
* Sorts list of {@code Object} entries alphanumerically. | |
*/ | |
public class AlphaNumericSorter { |
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> |
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> |
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. |
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; |
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
# Assuming an Ubuntu Docker image | |
$ docker run -it <image> /bin/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
# Configuration | |
## disable mergetool backup files | |
$ git config --global mergetool.keepBackup false | |
# Branch | |
## Show Tracking Branch | |
$ git remote show origin | |
## Create a new branch | |
$ git checkout -b <branch> <remote>/<branch> |
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 |
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 |
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
$ docker inspect --format {{.State.Pid}} <CONTAINER_PID> | |
e.g. $ PID=%(docker inspect --format {{.State.Pid}} <CONTAINER PID>) | |
$ sudo nsenter --target <pid> --mount --uts --ipc --net --pid /bin/sh |
OlderNewer