(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04 | |
| https://www.digitalocean.com/community/tutorials/how-to-install-the-django-web-framework-on-ubuntu-18-04 | |
| https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04 | |
| https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04 | |
| https://www.digitalocean.com/community/tutorials/how-to-set-up-object-storage-with-django |
| This article describes how our FragmentBack works under the hood. | |
| BaseFragment | |
| First step to create back-sensitive fragments is to define interface that we can call to notify particular fragments about back-press. It contains only one method onBackPressed() which returns a value that indicates if back-press event was consumed by the fragment. | |
| In this example we use base class, but you can define it via interface as well. | |
| public class BaseFragment extends Fragment { | |
| /** | |
| * Could handle back press. |
| This article describes how our FragmentBack works under the hood. | |
| BaseFragment | |
| First step to create back-sensitive fragments is to define interface that we can call to notify particular fragments about back-press. It contains only one method onBackPressed() which returns a value that indicates if back-press event was consumed by the fragment. | |
| In this example we use base class, but you can define it via interface as well. | |
| public class BaseFragment extends Fragment { | |
| /** | |
| * Could handle back press. |
| /** | |
| * @param array A sorted array of ints to search through. This must be sorted. | |
| * @param key an int to seach the array for | |
| * @param start position where the arrays starts | |
| * @param end position where the array ends | |
| * @return wheter the key exists in the array | |
| */ | |
| public static boolean binarySearchRecursive(int[] array, int key, int start, int end) { | |
| int middle = (start + end) / 2; |
| /*! Copyright (c) 2019 WhatsApp Inc. All Rights Reserved. */ | |
| webpackJsonp([0],{baaaeiafec:function(e,t){e.exports={muted:"yQFcY",item:"X7YrQ"}},babadgcffh:function(e,t){e.exports={muted:"_3IgiV",title:"_2XH7W"}},babbeaeffj:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n("ddeihcgfbg"),o=a(r),i=n("bdiiahhjbe"),l=a(i),c=function(e,t){l.default.assert(t.focusNode,"serializeTextBeforeCursor requires selection.focusNode")();var n=document.createRange();n.setStart(e,0),n.setEnd(t.focusNode,t.focusOffset);var a=n.cloneContents();return(0,o.default)(a,[])};t.default=c},babhhabdgf:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}func |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| package com.example.wingstestpaytm.Fragments; | |
| import android.annotation.SuppressLint; | |
| import android.os.Bundle; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.support.v4.app.Fragment; | |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.text.Editable; |
| certifi==2019.3.9 | |
| chardet==3.0.4 | |
| defusedxml==0.5.0 | |
| dj-database-url==0.5.0 | |
| Django==2.1.7 | |
| django-bootstrap3==11.0.0 | |
| django-braces==1.13.0 | |
| django-oauth-toolkit==1.2.0 | |
| django-rest-framework-social-oauth2==1.1.0 | |
| djangorestframework==3.9.2 |