firebase database:set
firebase database:set /import data.json
/import
--data
firebase database:set /import --data '{"foo": "bar baz"}'
echo '{"foo": "bar baz"}' | firebase database:set /import --confirm
--confirm
database:set
/messages
firebase database:get /messages
firebase database:get /messages > messages.json firebase database:get /messages --output messages.json
firebase database:get /messages --pretty
firebase database:get /messages --order-by-value date
firebase database:get --help
firebase database:push /messages --data '{"name":"Doug","text":"I heart Firebase"}'
database:update
firebase database:update /users/-L-7Zl_CiHW62YWLO5I7 --data '{"name":"CodingDoug"}'
database:remove
rm -rf /
firebase database:remove / --confirm
database:get
firebase --project myproject-dev database:get / | \ firebase --project myproject-staging database:set / --confirm
--project
function transfer_to() { local src_db="${1}" local dest_db="${2}" local path="${3:-/}" firebase database:get --project "$src_db" "$path" | firebase --project "$dest_db" database:set "$path" --confirm }
transfer_to myproject-dev myproject-staging
dependencies { ... compile 'com.android.installreferrer:installreferrer:1.0' }
InstallReferrerStateListener
public class MainActivity extends AppCompatActivity implements InstallReferrerStateListener { … }
InstallReferrerClient
startConnection()
InstallReferrerClient mReferrerClient ... mReferrerClient = newBuilder(this).build(); mReferrerClient.startConnection(this);
onInstallReferrerSetupFinished()
getInstallReferrer()
@Override public void onInstallReferrerSetupFinished(int responseCode) { switch (responseCode) { case InstallReferrerResponse.OK: try { Log.v(TAG, "InstallReferrer conneceted"); ReferrerDetails response = mReferrerClient.getInstallReferrer(); handleReferrer(response); mReferrerClient.endConnection(); } catch (RemoteException e) { e.printStackTrace(); } break; case InstallReferrerResponse.FEATURE_NOT_SUPPORTED: Log.w(TAG, "InstallReferrer not supported"); break; case InstallReferrerResponse.SERVICE_UNAVAILABLE: Log.w(TAG, "Unable to connect to the service"); break; default: Log.w(TAG, "responseCode not found."); } }
IGetInstallReferrerService AIDL reference
tf.contrib.keras
tf.keras
tf.keras.estimator.model_to_estimator
tf.data
tf.contrib.data
feed_dict
tf.estimator.train_and_evaluate
pip
# Note: the following command will overwrite any existing TensorFlow # installation. $ pip install --ignore-installed --upgrade tensorflow # Use pip for Python 2.7 # Use pip3 instead of pip for Python 3.x