This file contains hidden or 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
#prefix history | |
bind '"\eOA": history-search-backward' | |
bind '"\e[A": history-search-backward' | |
bind '"\eOB": history-search-forward' | |
bind '"\e[B": history-search-forward' | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
alias gitundo='git reset --soft HEAD~1'Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\203Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202¢Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\20\ | |
2Ã\203Â\202Ã\202Â\200Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\203Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\20\ | |
2¢Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202Â\200Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202Â\2 |
This file contains hidden or 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 android.app.AlertDialog; | |
import android.app.Dialog; | |
import android.app.DialogFragment; | |
import android.app.FragmentManager; | |
import android.content.DialogInterface; | |
import android.os.Bundle; | |
/** | |
* Generic message dialog |
This file contains hidden or 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 android.accounts.Account; | |
import android.accounts.AccountManager; | |
import android.content.Context; | |
import android.text.Editable; | |
import android.text.InputType; | |
import android.text.TextWatcher; | |
import android.util.AttributeSet; | |
import android.util.Patterns; | |
import android.widget.ArrayAdapter; |
This file contains hidden or 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 android.content.Context; | |
import android.preference.SwitchPreference; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.Switch; | |
/** | |
* Custom preference for handling a switch with a clickable preference area as well |
This file contains hidden or 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 <UIKit/UIKit.h> | |
CGFloat CGAffineTransformGetScaleX(CGAffineTransform t); | |
CGFloat CGAffineTransformGetScaleY(CGAffineTransform t); | |
CGFloat CGAffineTransformGetRotation(CGAffineTransform t); | |
CGFloat CGAffineTransformGetTranslationX(CGAffineTransform t); |