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() { |
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
[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
# 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
<?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" |
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) |
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
/* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2016 Piasy | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
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 TimberServiceWrapper extends ActionServiceWrapper { | |
private final String serviceTag; | |
public TimberServiceWrapper(ActionService actionService) { | |
this(actionService, null); | |
} | |
public TimberServiceWrapper(ActionService actionService, String tag) { | |
super(actionService); |
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
#!/usr/bin/env groovy | |
def runBuild(String nodeName = null, notifyGithub = true, Closure<Void> job) { | |
if (nodeName) node(nodeName) { runBuildInternally(job, notifyGithub) } | |
else runBuildInternally(job, notifyGithub) | |
} | |
private def runBuildInternally(Closure<Void> job, boolean notifyGithub) { | |
withGithubNotifier(notifyGithub) { | |
decorateBuild { |
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
package io.techery.detekt.extensions.rules | |
import io.gitlab.arturbosch.detekt.api.* | |
import org.jetbrains.kotlin.lexer.KtTokens | |
import org.jetbrains.kotlin.psi.* | |
/** | |
* Whitelist-able unsafe cast check. E.g. | |
* | |
* UnsafeCast: |