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
| fun outerFunction(nice: String) { | |
| val hello = "Hello, world" | |
| fun innerFunction(awesome: String) { | |
| println(awesome) | |
| // we can access arguments of outer function | |
| println(nice) | |
| // and we can also access variables declared in outer functions |
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
| if (BuildConfig.DEBUG) { | |
| Timber.plant(Timber.DebugTree()) | |
| } else { | |
| val papertrailTree = PapertrailTree( | |
| "MyLogger", "MyApp", PAPERTRAIL_HOST, PAPERTRAIL_PORT | |
| ) | |
| Timber.plant(papertrailTree) | |
| } |
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
| 0476a229ff21e49aef5e85739b00af6461ef067fbc2adb4b0a2f96b963a1560533ce8ad9d2602873384cf57729bdd94dd67473b55615d134de44e9b30dd8d44eed mirzap |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <manifest> | |
| <remote name="origin" fetch="https://github.com/yourorg" /> | |
| <default remote="origin" revision="develop" /> | |
| <project remote="origin" name="mobile-android-authentication-ui" path="modules/authentication-ui" /> | |
| <project remote="origin" name="mobile-android-conversation-ui" path="modules/conversation-ui" /> | |
| <project remote="origin" name="mobile-android-livefeed-ui" path="modules/livefeed-ui" /> | |
| <project remote="origin" name="mobile-android-stats-ui" path="modules/stats-ui" /> | |
| <project remote="origin" name="mobile-android-user-profile-ui" path="modules/user-profile-ui" /> |
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
| package org.glucosio.android.tools; | |
| import android.Manifest; | |
| import android.app.Activity; | |
| import android.content.pm.PackageManager; | |
| import android.os.Environment; | |
| import android.support.v4.app.ActivityCompat; | |
| import android.util.Log; | |
| import android.widget.Toast; |
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
| package com.gabesechan.android.reusable.receivers; | |
| import java.util.Date; | |
| import android.content.BroadcastReceiver; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.telephony.TelephonyManager; | |
| public abstract class PhonecallReceiver extends BroadcastReceiver { |
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
| /* | |
| Source: http://www.littlerobots.nl/blog/Handle-Android-RecyclerView-Clicks/ | |
| USAGE: | |
| ItemClickSupport.addTo(mRecyclerView).setOnItemClickListener(new ItemClickSupport.OnItemClickListener() { | |
| @Override | |
| public void onItemClicked(RecyclerView recyclerView, int position, View v) { | |
| // do it | |
| } | |
| }); |
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 com.google.android.gms.tasks.Task; | |
| import com.google.firebase.database.ChildEventListener; | |
| import com.google.firebase.database.DataSnapshot; | |
| import com.google.firebase.database.DatabaseError; | |
| import com.google.firebase.database.DatabaseReference; | |
| import com.google.firebase.database.Query; | |
| import com.google.firebase.database.ValueEventListener; | |
| import rx.Observable; | |
| import rx.Subscriber; |
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.ActivityNotFoundException; | |
| import android.content.Context; | |
| import android.content.DialogInterface; | |
| import android.content.Intent; | |
| import android.content.pm.PackageManager; | |
| import android.net.Uri; | |
| import android.os.Build; | |
| import android.support.v7.app.AlertDialog; | |
| import android.support.v7.widget.AppCompatTextView; |
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
| package com.firebase.client; | |
| import com.firebase.client.core.Constants; | |
| import rx.Observable; | |
| import rx.Subscriber; | |
| import rx.functions.Action0; | |
| import rx.functions.Func1; | |
| import rx.subscriptions.Subscriptions; | |
| public class RxFirebase { |