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
private ListView mListView; | |
private ArrayAdapter mListAdapter; | |
private final AlphaAnimation mFadeOut = new AlphaAnimation(1.0f, 0.3f); | |
private final AlphaAnimation mFadeIn = new AlphaAnimation(0.3f, 1.0f); | |
public class OnFolderOverflowSelectedListener implements OnClickListner { | |
// Stuff from above | |
public void onClick(View v) { | |
// All the stuff above |
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
public class OnAlbumOverflowSelectedListener implements OnClickListener { | |
private Album mAlbum; | |
private Context mContext; | |
public OnFolderOverflowSelectedListener(Context context, Album album) { | |
mContext = context; | |
mAlbum = album; | |
} | |
@Override |
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
#!/bin/bash | |
# Script to backup git repo to S3 | |
# Set bucket, dir, password and account to use for the backup. I keep mine in local env vars | |
# These are set by localrc which lives on an encrypted home directory and is executed by my bashrc | |
bucket=$GITHUB_BACKUP_BUCKET | |
dir=$GITHUB_BACKUP_DIR | |
password=$GITHUB_BACKUP_PASSWORD | |
account=$GITHUB_ACCOUNT |
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
# Prepare: add column 'price_value' and 'price_normalized' to you table | |
# 1) Run this one first | |
UPDATE top_android_apps | |
SET price_value = 0; | |
# 2) Run this one second | |
UPDATE top_android_apps | |
SET price_value = CASE | |
WHEN ( country IN ( 'GB', 'AU', 'CA', 'HK', 'RU' ) ) THEN |