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
# core {{{ | |
[core] | |
excludesfile = /Users/almozavr/.gitignore_global | |
pager=less -x4 | |
quotepath = false | |
pager = less | |
autocrlf = true | |
#}}} | |
# user {{{ |
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
[alias] | |
log-branch-only = "!f() { arg1=$1; if [[ $# -lt 2 ]] || [[ $2 == -* ]] ; then arg2=$arg1; arg1='HEAD'; arg3=${*:2}; else arg2=$2; arg3=${*:3}; fi; hash=`git merge-base $arg1 $arg2`; git log $hash..$arg2 $arg3; }; f" | |
[alias] | |
diff-branch-only = "!f() { arg1=$1; if [[ $# -lt 2 ]] || [[ $2 == -* ]] ; then arg2=$arg1; arg1='HEAD'; arg3=${*:2}; else arg2=$2; arg3=${*:3}; fi; hash=`git merge-base $arg1 $arg2`; git diff $hash..$arg2 $arg3; }; f" |
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
@Override | |
protected void onStart() { | |
super.onStart(); | |
App.uiBus.registerSticky(this); | |
} | |
@Override | |
protected void onStop() { | |
super.onStop(); | |
App.uiBus.unregister(this); |
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 List<Class<?>> getEventTypesBySubscriber(Object subscriber) { | |
List<SubscriberMethod> subscriberMethods = subscriberMethodFinder.findSubscriberMethods(subscriber.getClass(), defaultMethodName); | |
List<Class<?>> eventTypes = new ArrayList<Class<?>>(subscriberMethods.size()); | |
for (SubscriberMethod method : subscriberMethods) { | |
eventTypes.add(method.eventType); | |
} | |
return eventTypes; | |
} |
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 BusFragment extends Fragment { | |
@Override | |
public void onStart() { | |
super.onStart(); | |
App.uiBus.registerSticky(this); | |
} | |
@Override | |
public void onStop() { |
NewerOlder