Skip to content

Instantly share code, notes, and snippets.

View RobGThai's full-sized avatar
🎯
Focusing

Poohdish Rattanavijai RobGThai

🎯
Focusing
  • Bangkok, Thailand
View GitHub Profile
@RobGThai
RobGThai / setup.sh
Last active April 19, 2016 09:51 — forked from n3tr/setup.sh
Install Spark + Zeppelin on EC2
# scala install
wget www.scala-lang.org/files/archive/scala-2.11.7.deb
sudo dpkg -i scala-2.11.7.deb
# sbt installation
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
sudo apt-get update
sudo apt-get install sbt
/**
* Update single item inside {@link ListView}.
* @param target {@link Object} object to update view.
*/
private void refreshListItem(Object target){
ListView list = getListView();
// Find position of the first visible row
int start = list.getFirstVisiblePosition();
// Find position of the last visible row
int end = list.getLastVisiblePosition();