Some of the features mentioned in this document only work on the beta or Dev channel. To change your channel:
- chrome://help in a browser window
- Click Detailed Build Information
- Change Channel
- Select Beta (Or Dev, if you're feeling adventurous)
A crucial type in the app is the CognitoStore
. There's only ever one instance of this type that lives throughout the life-cycle of the app. Everywhere in our app, a dev has access to this one instance through the sharedInstance
static stored property on the CognitoStore
.
Important to note is the init
function on this type. It sets everything up, most imporantly the userPool
stored property of type AWSCognitoIdentityUserPool
. This in turn will provide access to the AWSCognitoIdentityUser
that exists on the AWSCognitoIdentityUserPool
. This is done by calling currentUser()
on the AWSCognitoIdentityUserPool
instance.
We expose the AWSCognitoIdentityUser
in the form of a computed property named currentUser
.
Here's how accessing this currentUser
looks like throughout the app:
import io.reactivex.Observable | |
import io.reactivex.subjects.BehaviorSubject | |
/** | |
* Wrapping Rx BehaviorSubject defaultValue object. | |
* RxSwfit Variable.swfit https://github.com/jspahrsummers/RxSwift/blob/master/RxSwift/SpinLock.swift | |
*/ | |
class Variable<T> private constructor(defaultValue: T?) { | |
companion object { | |
fun <T> create(): Variable<T> = Variable(null) |
import android.support.v4.app.Fragment | |
import org.jetbrains.anko.bundleOf | |
/** | |
* Pass arguments to a Fragment without the hassle of | |
* creating a static newInstance() method for every Fragment. | |
* | |
* Declared outside any class to have full access in any | |
* part of your package. | |
* |
package rx.playground; | |
import rx.Observable; | |
import rx.subjects.BehaviorSubject; | |
import rx.subjects.SerializedSubject; | |
public class Variable<T> { | |
private T value; | |
private final SerializedSubject<T, T> serializedSubject; |
/* | |
Unportify is a script that exports your Google Play music to text. | |
Copyright (C) 2016 Arnau Villoslada | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
#SwitchResX Settings for LG 21:9 UltraWide
SwitchResX is a utility that allows users to override the default resolution settings in OSX. For more information, including download links, vist http://www.madrau.com/ .
##Disabling System Integrity Protection (SIP)
If you are running OSX 10.11 or higher, SIP must be disabled. To disable SIP do the following:
Added in Android Jelly Bean (4.1) - API 16 : | |
Regular (default): | |
<item name="android:fontFamily">sans-serif</item> | |
<item name="android:textStyle">normal</item> | |
Italic: | |
<item name="android:fontFamily">sans-serif</item> |