View BusFragment
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() { |
View gist:5693003
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; | |
} |
View gist:5693012
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); |
View Git aliases for code review
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" |
View .gitconfig
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 {{{ |
View activity_login
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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@android:color/white"> | |
<ImageView | |
android:id="@+id/head_logo" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" |
View gist:7692154
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
Delivered-To: almozavr@gmail.com | |
Received: by 10.42.87.141 with SMTP id y13csp11267icl; | |
Thu, 28 Nov 2013 05:45:34 -0800 (PST) | |
X-Received: by 10.194.185.73 with SMTP id fa9mr36830100wjc.29.1385646333791; | |
Thu, 28 Nov 2013 05:45:33 -0800 (PST) | |
Return-Path: <bounces+30137-5591-komanda=ecodnepr.org@email.launchrock.com> | |
Received: from li298-54.members.linode.com (li298-54.members.linode.com. [178.79.160.54]) | |
by mx.google.com with ESMTP id pr7si23213775wjc.164.2013.11.28.05.45.33 | |
for <almozavr@gmail.com>; | |
Thu, 28 Nov 2013 05:45:33 -0800 (PST) |
View .gitconfig
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 = input | |
#}}} | |
# user {{{ |
View app_build.gradle
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
// Application | |
apply plugin: 'android' | |
repositories { | |
mavenCentral() | |
} | |
android { | |
compileSdkVersion rootProject.ext.compileSdkVersion | |
buildToolsVersion rootProject.ext.buildToolsVersion |
View Script to start-stop Genymotion with connection to ADB
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 | |
#=====EXAMPLE OF USAGE=============== | |
# $ ./scripts/gm.sh -r 526d4be6-9964-4a84-83fd-31af8029cf44 | |
# $ ./gradlew clean connectedAndroidTest | |
# $ ./scripts/gm.sh -s 526d4be6-9964-4a84-83fd-31af8029cf44 | |
#==================================== | |
#=========== | |
# VM helpers |
OlderNewer